This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libbacktrace and darwin


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]