Maybe off topic?

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Wed Mar 31 23:46:00 GMT 1999


> Is there a standard way on how user code can access these unwind 
> tables without messing with libgcc2 internals? 

The problem is that you have to find a the eh_frame section. Using
frame_state_for is the way that the C++ runtime uses, and is the
official interface to libgcc2, I believe.

Of course, if you control the dynamic linker, you can also go an look
for the .eh_frame sections of all the shared libraries.  AFAIK, its
format is well-specified by DWARF, so there shouldn't be any libgcc
internals in there.

If you are neither the compiler nor the operating system (:-) but
standard user code, I believe you are out-of-luck.

Hope this helps,
Martin



More information about the Gcc mailing list