comparison etc/DEBUG @ 71448:8c249825e7f3

Add reference to description of .gdbinit commands.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 23 Jun 2006 18:14:57 +0000
parents 241a58942caf
children 2fef1488c1d0 138ce2701550
comparison
equal deleted inserted replaced
71447:8a6f6fdcea00 71448:8c249825e7f3
18 document.] 18 document.]
19 19
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
26 at least (when using GCC) with the -fno-crossjumping option. Failure 28 at least (when using GCC) with the -fno-crossjumping option. Failure
27 to do so may make the compiler recycle the same abort call for all 29 to do so may make the compiler recycle the same abort call for all
274 276
275 Debugging with GDB in Emacs offers some advantages over the command line (See 277 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.
285 287
286 3) The STOP button on the tool bar is adjusted so that it sends SIGTSTP 288 3) The STOP button on the tool bar is adjusted so that it sends SIGTSTP