Mercurial > emacs
comparison man/trouble.texi @ 62899:1a33c4dbb62b
(After a Crash): Describe how to use emacs-buffer.gdb more explicitly.
author | Noah Friedman <friedman@splode.com> |
---|---|
date | Mon, 30 May 2005 10:59:43 +0000 |
parents | 6181dbed8947 |
children | b9a3bc12a80f |
comparison
equal
deleted
inserted
replaced
62898:e7e2bd704ba1 | 62899:1a33c4dbb62b |
---|---|
349 | 349 |
350 When @code{recover-session} is done, the files you've chosen to | 350 When @code{recover-session} is done, the files you've chosen to |
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 |
363 | 376 |
364 Because at times there have been bugs causing Emacs to loop without | 377 Because at times there have been bugs causing Emacs to loop without |