[LLVMdev] Printing a stack trace?
Duncan Sands
baldrick at free.fr
Sat Feb 23 00:30:06 PST 2008
> I'd like to be able to catch an exception and print a stack trace,
> showing the call stack with source file and line number (using
> embedded debugging information I would guess.)
The gcc Ada front-end has a facility for doing this (in gcc/ada/tracebak.c),
using gcc builtins. Maybe this will give you some ideas? Unfortunately, it
doesn't work in llvm-gcc (this is PR1982), but I'm interested in finding out
what would be needed to get it to work.
Ciao,
Duncan.
More information about the llvm-dev
mailing list