[Top][All Lists]

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

[Libunwind-devel] using libunwind on Windows

From: Vincent Torri
Subject: [Libunwind-devel] using libunwind on Windows
Date: Sun, 13 Dec 2015 09:29:35 +0100


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

reply via email to

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