Mercurial > emacs
comparison etc/DEBUG @ 69477:4a8aa0c1f128
(Note): Describe features for debugging with GDB in Emacs.
author | Nick Roberts <nickrob@snap.net.nz> |
---|---|
date | Tue, 14 Mar 2006 20:29:15 +0000 |
parents | e8a3fb527b77 |
children | aed02e3a8c0f |
comparison
equal
deleted
inserted
replaced
69476:1db3b0eac5a2 | 69477:4a8aa0c1f128 |
---|---|
243 | 243 |
244 and, assuming that "xtype" says that args[0] is a symbol: | 244 and, assuming that "xtype" says that args[0] is a symbol: |
245 | 245 |
246 xsymbol | 246 xsymbol |
247 | 247 |
248 ** Using GDB in Emacs | |
249 | |
250 Debugging with GDB in Emacs offers some advantages over the command line (See | |
251 the GDB Graphical Interface node of the Emacs manual). There are also some | |
252 features available just for debugging Emacs: | |
253 | |
254 1) The command gud-pp isavailable on the tool bar (the `pp' icon) and allows | |
255 the user to print the s-expression of the variable at point, in the GUD | |
256 buffer. | |
257 | |
258 2) Pressing `p' on a component of a watch expression that is a lisp object | |
259 in the speedbar prints its s-expression in the GUD buffer. | |
260 | |
261 3) The STOP button on the tool bar is adjusted so that it sends SIGTSTP | |
262 instead of the usual SIGINT. | |
263 | |
264 4) The command gud-pv has the global binding 'C-x C-a C-v' and prints the | |
265 value of the lisp variable at point. | |
266 | |
248 ** Debugging what happens while preloading and dumping Emacs | 267 ** Debugging what happens while preloading and dumping Emacs |
249 | 268 |
250 Type `gdb temacs' and start it with `r -batch -l loadup dump'. | 269 Type `gdb temacs' and start it with `r -batch -l loadup dump'. |
251 | 270 |
252 If temacs actually succeeds when running under GDB in this way, do not | 271 If temacs actually succeeds when running under GDB in this way, do not |