From: Paul Eggert Date: Fri, 21 Sep 2012 19:28:41 +0000 (-0700) Subject: * trouble.texi (Crashing): Document addr2line. X-Git-Tag: emacs-24.2.90~269^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa;p=emacs.git * trouble.texi (Crashing): Document addr2line. --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 29c0b3cd1be..8d3fc2b3e0c 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,3 +1,7 @@ +2012-09-21 Paul Eggert + + * trouble.texi (Crashing): Document addr2line. + 2012-09-19 Chong Yidong * killing.texi (Yanking): Minor clarification (Bug#12469). diff --git a/doc/emacs/trouble.texi b/doc/emacs/trouble.texi index 1806339e45d..ad270aec232 100644 --- a/doc/emacs/trouble.texi +++ b/doc/emacs/trouble.texi @@ -308,13 +308,26 @@ emacs[0x565151] @noindent The number @samp{11} is the system signal number that corresponds to -the problem, a segmentation fault here. The hexadecimal program -addresses can be useful in debugging sessions. For example, the GDB -command @samp{list *0x509af6} prints the source-code lines -corresponding to the @samp{emacs[0x509af6]} entry in the backtrace. +the problem, a segmentation fault here. The three dots at the end +indicate that Emacs suppressed further backtrace entries, in the +interest of brevity. -The three dots at the end indicate that Emacs suppressed further -backtrace entries, in the interest of brevity. +The hexadecimal program addresses can be useful in debugging sessions. +For example, the GDB command @samp{list *0x509af6} prints the +source-code lines corresponding to the @samp{emacs[0x509af6]} entry in +the backtrace. Or, if your system has @command{addr2line}, the +following shell command outputs a backtrace with source-code line +numbers: + +@example +sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} | + addr2line -Cfip -e @var{bindir}/emacs +@end example + +@noindent +Here, @var{backtrace} is the name of a text file containing a copy of +the backtrace, and @var{bindir} is the name of the directory that +contains the Emacs executable. @node After a Crash @subsection Recovery After a Crash