diff options
| -rw-r--r-- | etc/DEBUG | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -20,6 +20,8 @@ document.] | |||
| 20 | ** When you debug Emacs with GDB, you should start it in the directory | 20 | ** When you debug Emacs with GDB, you should start it in the directory |
| 21 | where the executable was made. That directory has a .gdbinit file | 21 | where the executable was made. That directory has a .gdbinit file |
| 22 | that defines various "user-defined" commands for debugging Emacs. | 22 | that defines various "user-defined" commands for debugging Emacs. |
| 23 | (These commands are described below under "Examining Lisp object | ||
| 24 | values" and "Debugging Emacs Redisplay problems".) | ||
| 23 | 25 | ||
| 24 | ** When you are trying to analyze failed assertions, it will be | 26 | ** When you are trying to analyze failed assertions, it will be |
| 25 | essential to compile Emacs either completely without optimizations or | 27 | essential to compile Emacs either completely without optimizations or |
| @@ -276,9 +278,9 @@ Debugging with GDB in Emacs offers some advantages over the command line (See | |||
| 276 | the GDB Graphical Interface node of the Emacs manual). There are also some | 278 | the GDB Graphical Interface node of the Emacs manual). There are also some |
| 277 | features available just for debugging Emacs: | 279 | features available just for debugging Emacs: |
| 278 | 280 | ||
| 279 | 1) The command gud-pp isavailable on the tool bar (the `pp' icon) and allows | 281 | 1) The command gud-pp is available on the tool bar (the `pp' icon) and |
| 280 | the user to print the s-expression of the variable at point, in the GUD | 282 | allows the user to print the s-expression of the variable at point, |
| 281 | buffer. | 283 | in the GUD buffer. |
| 282 | 284 | ||
| 283 | 2) Pressing `p' on a component of a watch expression that is a lisp object | 285 | 2) Pressing `p' on a component of a watch expression that is a lisp object |
| 284 | in the speedbar prints its s-expression in the GUD buffer. | 286 | in the speedbar prints its s-expression in the GUD buffer. |