On 5/28/2017 10:15 AM, niXman wrote:
Edward Diener 2017-05-28 16:32:

2) libbacktrace can be part of a mingw-64 distribution but relies on
other files in that distribution ?
Yes.

Great !


I see in [2] below that there was a discussion of making libbacktrace
standalone, but it appears that in the 4 years from that discussion
that it was never followed through.

I can make the libbacktrace part of the mingw-w64 distribution. In order to do this I should copy the three files(libbacktrace.a, backtrace.h, gstdint.h) from the GCC build tree.

If libbacktrace were part of mingw-w64 distribution I think it would benefit mingw-64 users. This is because the new Boost stacktrace library ( I am not its author ) uses libbacktrace to produce stack trace information on demand, and I am sure you know that Boost is popular with C++ programmers. For VC++ on Windows the Boost stacktrace library uses other means to generate its stacktrace, so libbacktrace is really useful for Boost stacktrace when mingw-64 is being used. You can see Boost stacktrace at https://github.com/boostorg/stacktrace since it is now a Boost git submodule, and it should be part of the next Boost release.


But pay attention to the limited possibilities of libbacktrace, the developer[1] of this library writes about:
As of September 2016, libbacktrace only supports ELF and PE/COFF executables with DWARF debugging information.

That does not seem very limiting. ELF and PE/COFF covers all popular object file formats on Linux and Windows respectively and surely just about everyone not using VC++ uses DWARF rather than sjlj.




[1] https://github.com/ianlancetaylor/libbacktrace

Thanks for the link.

How would I build this above-linked libbacktrace in mingw-64 for myself ? Am I supposed to use the current mingw-64 build script to do so and just copy the aforementioned 3 files to some final directories ?




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to