This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libbacktrace and darwin
- From: Ian Lance Taylor <iant at google dot com>
- To: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 4 Oct 2012 14:23:23 -0700
- Subject: Re: libbacktrace and darwin
- References: <20121004203204.GA28830@bromo.med.uc.edu>
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