diff options
| author | Richard M. Stallman | 2002-02-20 22:24:59 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-02-20 22:24:59 +0000 |
| commit | 42a3c62765b43eee3586e5ba023a2e6d25c724d2 (patch) | |
| tree | 02db46feff98114ad31fa41281b8c0440599ea97 | |
| parent | 31b62ac19e008fe9a2e7780c3228bf81e3b62daf (diff) | |
| download | emacs-42a3c62765b43eee3586e5ba023a2e6d25c724d2.tar.gz emacs-42a3c62765b43eee3586e5ba023a2e6d25c724d2.zip | |
*** empty log message ***
| -rw-r--r-- | etc/DEBUG | 8 |
1 files changed, 6 insertions, 2 deletions
| @@ -16,13 +16,17 @@ Copyright (c) 1985, 2000, 2001 Free Software Foundation, Inc. | |||
| 16 | should read the Windows-specific section near the end of this | 16 | should read the Windows-specific section near the end of this |
| 17 | document.] | 17 | document.] |
| 18 | 18 | ||
| 19 | It is a good idea to run Emacs under GDB (or some other suitable | 19 | ** When you debug Emacs with GDB, you should start it in the directory |
| 20 | where you built Emacs. That directory has a .gdbinit file that defines | ||
| 21 | various "user-defined" commands for debugging Emacs. | ||
| 22 | |||
| 23 | ** It is a good idea to run Emacs under GDB (or some other suitable | ||
| 20 | debugger) *all the time*. Then, when Emacs crashes, you will be able | 24 | debugger) *all the time*. Then, when Emacs crashes, you will be able |
| 21 | to debug the live process, not just a core dump. (This is especially | 25 | to debug the live process, not just a core dump. (This is especially |
| 22 | important on systems which don't support core files, and instead print | 26 | important on systems which don't support core files, and instead print |
| 23 | just the registers and some stack addresses.) | 27 | just the registers and some stack addresses.) |
| 24 | 28 | ||
| 25 | If Emacs hangs, or seems to be stuck in some infinite loop, typing | 29 | ** If Emacs hangs, or seems to be stuck in some infinite loop, typing |
| 26 | "kill -TSTP PID", where PID is the Emacs process ID, will cause GDB to | 30 | "kill -TSTP PID", where PID is the Emacs process ID, will cause GDB to |
| 27 | kick in, provided that you run under GDB. | 31 | kick in, provided that you run under GDB. |
| 28 | 32 | ||