diff options
| author | Paul Eggert | 2012-09-21 12:28:41 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-09-21 12:28:41 -0700 |
| commit | 58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa (patch) | |
| tree | ec4472ca67647eb76b636517c00849733767257d | |
| parent | 09c01941f40d1f334435f3aee8f4a66459e47866 (diff) | |
| download | emacs-58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa.tar.gz emacs-58f3a196fcd6c2f8b65e6b6cf1bc377d1a6287aa.zip | |
* trouble.texi (Crashing): Document addr2line.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/trouble.texi | 25 |
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 @@ | |||
| 1 | 2012-09-21 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * trouble.texi (Crashing): Document addr2line. | ||
| 4 | |||
| 1 | 2012-09-19 Chong Yidong <cyd@gnu.org> | 5 | 2012-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 |
| 310 | The number @samp{11} is the system signal number that corresponds to | 310 | The number @samp{11} is the system signal number that corresponds to |
| 311 | the problem, a segmentation fault here. The hexadecimal program | 311 | the problem, a segmentation fault here. The three dots at the end |
| 312 | addresses can be useful in debugging sessions. For example, the GDB | 312 | indicate that Emacs suppressed further backtrace entries, in the |
| 313 | command @samp{list *0x509af6} prints the source-code lines | 313 | interest of brevity. |
| 314 | corresponding to the @samp{emacs[0x509af6]} entry in the backtrace. | ||
| 315 | 314 | ||
| 316 | The three dots at the end indicate that Emacs suppressed further | 315 | The hexadecimal program addresses can be useful in debugging sessions. |
| 317 | backtrace entries, in the interest of brevity. | 316 | For example, the GDB command @samp{list *0x509af6} prints the |
| 317 | source-code lines corresponding to the @samp{emacs[0x509af6]} entry in | ||
| 318 | the backtrace. Or, if your system has @command{addr2line}, the | ||
| 319 | following shell command outputs a backtrace with source-code line | ||
| 320 | numbers: | ||
| 321 | |||
| 322 | @example | ||
| 323 | sed -n 's/.*\[\(.*\)]$/\1/p' @var{backtrace} | | ||
| 324 | addr2line -Cfip -e @var{bindir}/emacs | ||
| 325 | @end example | ||
| 326 | |||
| 327 | @noindent | ||
| 328 | Here, @var{backtrace} is the name of a text file containing a copy of | ||
| 329 | the backtrace, and @var{bindir} is the name of the directory that | ||
| 330 | contains 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 |