libbacktrace and darwin
Ian Lance Taylor
iant@google.com
Thu Oct 4 21:23:00 GMT 2012
On Thu, Oct 4, 2012 at 1:32 PM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
> Is libbacktrace currently functional in gcc trunk and is it expected
> to function on darwin? While I could understand it not working on installed
> binaries of FSF gcc that were stripped, I would think it should work for
> make check in the build tree since all of the debug code should be present
> in the object files. Or doesn't libbacktrace know to look there for the
> dwarf code? Thanks in advance for any clarifications.
libbacktrace is functional in GCC trunk. However, it does not yet
support the Mach-O object file format. I hope to work on that at some
point, but it would be great if somebody else tackled it. It's
probably straightforward to implement based on code in
libiberty/simple-object-mach-o.c. The libbacktrace code can be
simpler than the libiberty code--compare libiberty/simple-object-elf.c
and libbacktrace/elf.c.
Ian
More information about the Gcc
mailing list