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. Advertisements

  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. Advertisements

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. RN
    Replies:
    0
    Views:
    2,903
  2. Mike
    Replies:
    2
    Views:
    815
  3. Surinder Singh
    Replies:
    1
    Views:
    1,438
    Richard Bos
    Dec 20, 2007
  4. Casey Hawthorne
    Replies:
    3
    Views:
    1,382
    Flash Gordon
    Nov 1, 2009
  5. Debajit Adhikary
    Replies:
    36
    Views:
    3,080
    Andre Kaufmann
    Feb 10, 2011
  6. Sam Roberts
    Replies:
    1
    Views:
    355
    Yukihiro Matsumoto
    Feb 11, 2005
  7. Kenneth McDonald

    Why stack overflow with such a small stack?

    Kenneth McDonald, Aug 30, 2007, in forum: Ruby
    Replies:
    7
    Views:
    506
    Kenneth McDonald
    Sep 1, 2007
  8. Kushal Das
    Replies:
    0
    Views:
    273
    Kushal Das
    Jun 22, 2012
Loading...