This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Installation of unwind header
Andrew Haley <aph@redhat.com> writes:
> Andreas Jaeger writes:
> > Andrew Haley <aph@redhat.com> writes:
> >
> > > Michael Matz writes:
> > > >
> > > > to support programs which also need to unwind stack frames we would like
> > > > to install gcc/gcc/unwind.h. Possibly under a different name, and maybe
> > > > slightly changed.
> > >
> > > I presume you'd need to add some things to the list of libgcc exports.
> > > What new symbols would you need to export? What data structures?
> >
> > Those symbols that are part of the ia64 and the x86-64 ABIs:
>
> Oh, I see, just the symbols that are already exported from the
> library. This doesn't seem like a useful and general interface to the
> unwinder. It's not clear to me that with this interface you could,
> for example, duplicate the functionality of the glibc backtrace(),
> which doesn't work on some platforms. However, I don't know what you
> are trying to achieve.
The interface is documented in the psABIs of x86-64 and ia64, gcc
implements the interface but does not export it. It should export it
to conform to the ABI.
> Would it be possible to do what you need with libunwind instead?
libunwind works only on ia64, it's highly platform dependend and AFAIK
does not use gcc's unwind interface.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj