diff options
| author | Noah Friedman | 2005-05-30 10:59:43 +0000 |
|---|---|---|
| committer | Noah Friedman | 2005-05-30 10:59:43 +0000 |
| commit | 165408692a30fbff60917888e43cffcaa79a2be3 (patch) | |
| tree | b0e2cac41a26c933e8e1919a8b1984d8eab58cb9 | |
| parent | e55df387ea6d222588ec597f6308d0b308335c59 (diff) | |
| download | emacs-165408692a30fbff60917888e43cffcaa79a2be3.tar.gz emacs-165408692a30fbff60917888e43cffcaa79a2be3.zip | |
(After a Crash): Describe how to use emacs-buffer.gdb more explicitly.
| -rw-r--r-- | man/trouble.texi | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/man/trouble.texi b/man/trouble.texi index 2c815926796..ff846821ff2 100644 --- a/man/trouble.texi +++ b/man/trouble.texi | |||
| @@ -351,12 +351,25 @@ visits the file but gets the text from the auto-save file. | |||
| 351 | recover are present in Emacs buffers. You should then save them. Only | 351 | recover are present in Emacs buffers. You should then save them. Only |
| 352 | this---saving them---updates the files themselves. | 352 | this---saving them---updates the files themselves. |
| 353 | 353 | ||
| 354 | |||
| 354 | As a last resort, if you had buffers with content which were not | 355 | As a last resort, if you had buffers with content which were not |
| 355 | associated with any files, or if the autosave was not recent enough to | 356 | associated with any files, or if the autosave was not recent enough to |
| 356 | have recorded important changes, you can use the | 357 | have recorded important changes, you can use the |
| 357 | @file{etc/emacs-buffer.gdb} script with @code{gdb} to retrieve them | 358 | @file{etc/emacs-buffer.gdb} script with GDB (the GNU Debugger) to |
| 358 | from a core dump--provided that a core dump was saved, and that the | 359 | retrieve them from a core dump--provided that a core dump was saved, |
| 359 | emacs executable was not stripped of its debugging symbols. | 360 | and that the Emacs executable was not stripped of its debugging |
| 361 | symbols. | ||
| 362 | |||
| 363 | To use this script, run @code{gdb} with the file name of your | ||
| 364 | Emacs executable and the file name of the core dump, e.g. @samp{gdb | ||
| 365 | /usr/bin/emacs core.emacs}. At the @code{(gdb)} prompt, load the | ||
| 366 | recovery script: @samp{source /usr/src/emacs/etc/emacs-buffer.gdb}. | ||
| 367 | You can now use the commands @code{ybuffer-list} and | ||
| 368 | @code{ysave-buffer} to list and save buffers. The @code{ysave-buffer} | ||
| 369 | command takes a buffer number (as listed by @code{ybuffer-list}) and a | ||
| 370 | file name to which to write the buffer contents. You should use a | ||
| 371 | file name which does not already exist; no backups of the previous | ||
| 372 | contents of the file will be saved, if any. | ||
| 360 | 373 | ||
| 361 | @node Emergency Escape | 374 | @node Emergency Escape |
| 362 | @subsection Emergency Escape | 375 | @subsection Emergency Escape |