Stack tracing on POSIX systems

Discussion in 'C++' started by cpunerd@gmail.com, Mar 5, 2007.

  1. Guest

    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?
     
    , Mar 5, 2007
    #1
    1. Advertising

  2. Ian Collins Guest

    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.
     
    Ian Collins, Mar 5, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike
    Replies:
    2
    Views:
    671
  2. Surinder Singh
    Replies:
    1
    Views:
    1,253
    Richard Bos
    Dec 20, 2007
  3. Casey Hawthorne
    Replies:
    3
    Views:
    1,156
    Flash Gordon
    Nov 1, 2009
  4. Kushal Das
    Replies:
    0
    Views:
    248
    Kushal Das
    Jun 22, 2012
  5. Dieter Maurer
    Replies:
    0
    Views:
    238
    Dieter Maurer
    Jun 22, 2012
Loading...

Share This Page