Stack tracing on POSIX systems

C

cpunerd

I'm trying to manually print what GDB might print when you execute a
backtrace command. I have debugging symbols compiled in, and now I'm
just looking for a library or some code that can do this. I can get
the function names, but I don't know how to get the line numbers. I
dug through GDB, and it seems to be a huge ordeal. Is there a library
that wraps this capability, or is GDB just going above and beyond what
a normal application would have to do?
 
I

Ian Collins

I'm trying to manually print what GDB might print when you execute a
backtrace command. I have debugging symbols compiled in, and now I'm
just looking for a library or some code that can do this. I can get
the function names, but I don't know how to get the line numbers. I
dug through GDB, and it seems to be a huge ordeal. Is there a library
that wraps this capability, or is GDB just going above and beyond what
a normal application would have to do?
You probably want to ask on a gcc list, this is too compiler specific.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top