Skip to contentSkip to conversation

Stack unwind functions

Linux-ia64 Ram Menon 3 participants 3 messages Jun 13, 2001 – Jun 14, 2001

lore
Share & tools
lore

Ram Menon

author
#0 lore raw

Hi,

Is there any stack unwind functions available on Linux IA64 ?.

thanks

#1 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · On Wed, 13 Jun 2001 16:28:37 -0700 (PDT), [email protected] (Ram Menon) said:

Ram> Hi, Is there any stack unwind functions available on Linux IA64 Ram> ?.

Not at the moment. The libgcc in gcc3.0 will have all the necessary unwind code, but no interface to unwind the stack (it can be used for exception handling purposes only). ;-(

	--david
#2 lore raw
In reply to Ram Menon

Stack unwinding is supported for C++ exception handling.

If you are asking about user level routines, then it varies, depending on which version of gcc you have, but there is nothing really convenient as yet.

The "Nov snapshot" doesn't provide any user level API for unwinding. However, the java runtime wanted a function that worked like the Glibc backtrace function, so they added a function to libgcc.c called __ia64_backtrace.

The gcc-3 prerelease provides the Unwind API documented in the IA-64 ABI. However, this alone probably doesn't give you what you want. Plus, you may not be able to use this compiler until there is an OS distribution built from it. And unfortunately the __ia64_backtrace function had to go away, since it didn't fit into the new EH implementation that uses the Unwind API.

Jim