Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Stack tracing on POSIX systems

Reply
Thread Tools

Stack tracing on POSIX systems

 
 
cpunerd@gmail.com
Guest
Posts: n/a
 
      03-05-2007
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?

 
Reply With Quote
 
 
 
 
Ian Collins
Guest
Posts: n/a
 
      03-05-2007
wrote:
> 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.

--
Ian Collins.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: A question on os.path.join in POSIX systems Dieter Maurer Python 0 06-22-2012 06:25 PM
A question on os.path.join in POSIX systems Kushal Das Python 0 06-22-2012 05:54 PM
C/C++ compilers have one stack for local variables and return addresses and then another stack for array allocations on the stack. Casey Hawthorne C Programming 3 11-01-2009 08:23 PM
Voip PBX,Private Phone Systems,PBX Telephone Systems, Business Phone Systems broadbandera@gmail.com UK VOIP 9 07-24-2006 03:44 PM
java as a systems administration/systems programming language? Mike Java 2 06-17-2004 03:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57