aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2012-09-21 12:28:41 -0700
committerPaul Eggert2012-09-21 12:28:41 -0700
commit58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa (patch)
treeec4472ca67647eb76b636517c00849733767257d
parent09c01941f40d1f334435f3aee8f4a66459e47866 (diff)
downloademacs-58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa.tar.gz
emacs-58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa.zip
* trouble.texi (Crashing): Document addr2line.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/trouble.texi25
2 files changed, 23 insertions, 6 deletions
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 @@
12012-09-21 Paul Eggert <eggert@cs.ucla.edu>
2
3 * trouble.texi (Crashing): Document addr2line.
4
12012-09-19 Chong Yidong <cyd@gnu.org> 52012-09-19 Chong Yidong <cyd@gnu.org>
2 6
3 * killing.texi (Yanking): Minor clarification (Bug#12469). 7 * 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]
308 308
309@noindent 309@noindent
310The number @samp{11} is the system signal number that corresponds to 310The number @samp{11} is the system signal number that corresponds to
311the problem, a segmentation fault here. The hexadecimal program 311the problem, a segmentation fault here. The three dots at the end
312addresses can be useful in debugging sessions. For example, the GDB 312indicate that Emacs suppressed further backtrace entries, in the
313command @samp{list *0x509af6} prints the source-code lines 313interest of brevity.
314corresponding to the @samp{emacs[0x509af6]} entry in the backtrace.
315 314
316The three dots at the end indicate that Emacs suppressed further 315The hexadecimal program addresses can be useful in debugging sessions.
317backtrace entries, in the interest of brevity. 316For example, the GDB command @samp{list *0x509af6} prints the
317source-code lines corresponding to the @samp{emacs[0x509af6]} entry in
318the backtrace. Or, if your system has @command{addr2line}, the
319following shell command outputs a backtrace with source-code line
320numbers:
321
322@example
323sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} |
324 addr2line -Cfip -e @var{bindir}/emacs
325@end example
326
327@noindent
328Here, @var{backtrace} is the name of a text file containing a copy of
329the backtrace, and @var{bindir} is the name of the directory that
330contains the Emacs executable.
318 331
319@node After a Crash 332@node After a Crash
320@subsection Recovery After a Crash 333@subsection Recovery After a Crash