libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libunwind-devel] using libunwind on Windows


From: Martin Hundebøll
Subject: Re: [Libunwind-devel] using libunwind on Windows
Date: Tue, 15 Mar 2016 21:44:17 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Hi Vincent / libunwind dev

I came across this patch and I propose it being included in upstream libunwind:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-libunwind-svn/0001-libunwind-add-support-for-mingw-w64.patch

Thanks,
Martin

On 2015-12-13 09:29, Vincent Torri wrote:
Hello

I am writing a small valgrind-like program on Windows, to detect
memleak and some errors that valgrind's memcheck identifies.

Currently, for the backtrace, I use the Windows API if compiled with
vc++, and libbfd if compiled with gcc (mingw-w64). libbfd works well
(i get file, function ad line number that I want), but the licence is
a problem (GPL v3).

libdwarf seems big, libunwind seems smaller, and according to the
documentation, libunwind can manage DWARF format

If I'm not mistaken, the GNU linker provides debugging informations in
the DWARF format on Windows.

I have 2 questions:

1) Do you think that libunwind could indeed provide backtrace from
programs/libraries linked with the GNU linker on Windows ?

2) if yes, as i am quite interested to have libunwind on Windows,
compiling it with MSYS/mingw-w64 (not vc++), where should I start, and
which files should I look first ?

Note that I would like to provide patches upstream, not to fork libunwind.

thank you

Vincent Torri




--
Kind Regards,
Martin Hundebøll
Kildeagervej 166
8361 Hasselager

+45 25 56 24 38
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]