backtrace and line numbers

From: milkyway (d0mufasa_at_hotmail.com)
Date: 09/17/05

  • Next message: saravanan.linux_at_gmail.com: "chvt Vs xchvt?"
    Date: 17 Sep 2005 01:33:46 -0700
    
    

    Hello,

    I found this thread on the use of backtrace to get a stack dump.

    http://groups.google.com/group/comp.unix.programmer/browse_thread/thread/7489be63bab1e126/d6b6eb2d66c667ac?lnk=st&q=backtrace+line+number&rnum=9#d6b6eb2d66c667ac

    I followed this thread:

    http://groups.google.com/group/comp.os.linux.development.apps/browse_frm/thread/1585b2e44fa36b24/0e4ff8fb2959797a?lnk=st&q=backtrace+runtime+linux&rnum=6#0e4ff8fb2959797a

    and found a way to list the stacktrace with the function name. But now,
    I need the line numbers as well.

    How can this be done?

    TIA


  • Next message: saravanan.linux_at_gmail.com: "chvt Vs xchvt?"

    Relevant Pages

    • backtrace and line numbers
      ... I found this thread on the use of backtrace to get a stack dump. ... and found a way to list the stacktrace with the function name. ... TIA ...
      (comp.os.linux.development.apps)
    • backtrace and line numbers
      ... I found this thread on the use of backtrace to get a stack dump. ... and found a way to list the stacktrace with the function name. ... TIA ...
      (comp.os.linux.development.system)
    • Re: [PATCH v2] ftrace: warn on failure to disable mcount callers
      ... On Fri, 22 Aug 2008, Ingo Molnar wrote: ... If there's such a failure then ftrace should warn once, with stacktrace ... The backtrace should give us 1 without a problem. ...
      (Linux-Kernel)
    • Re: accessing each pthreads context
      ... make a stack dump on Linux. ... You're right about a signal thread being one way to get the ... and then do a backtrace and communicate the results ... The stack trace is easy on Linux ... ...
      (comp.programming.threads)
    • glibc backtrace() gives line no off by one
      ... The backtrace() provides complete stacktrace. ... if i am expecting line no. of foo, it returns line on if int i=0; ... seems like gdb is doing something more to get correct line no. ...
      (comp.os.linux.development.apps)