aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts2006-03-14 20:29:15 +0000
committerNick Roberts2006-03-14 20:29:15 +0000
commitc167547bc3fde196a82f5afb21509a4112e582d7 (patch)
tree3ad0cf84703e3410836c9617741f9444c781ac8e
parent4ea252326a3d136394c8d789491cb134aa37f5bd (diff)
downloademacs-c167547bc3fde196a82f5afb21509a4112e582d7.tar.gz
emacs-c167547bc3fde196a82f5afb21509a4112e582d7.zip
(Note): Describe features for debugging with GDB in Emacs.
-rw-r--r--etc/DEBUG19
1 files changed, 19 insertions, 0 deletions
diff --git a/etc/DEBUG b/etc/DEBUG
index 1695c6e7f07..5b4ccc0f964 100644
--- a/etc/DEBUG
+++ b/etc/DEBUG
@@ -245,6 +245,25 @@ 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
250Debugging with GDB in Emacs offers some advantages over the command line (See
251the GDB Graphical Interface node of the Emacs manual). There are also some
252features available just for debugging Emacs:
253
2541) 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
2582) 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
2613) The STOP button on the tool bar is adjusted so that it sends SIGTSTP
262 instead of the usual SIGINT.
263
2644) 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
250Type `gdb temacs' and start it with `r -batch -l loadup dump'. 269Type `gdb temacs' and start it with `r -batch -l loadup dump'.