comparison etc/DEBUG @ 90082:6d92d69fae33

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-4 Merge from emacs--cvs-trunk--0 Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-41 - miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-46 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-47 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-4 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-5 Update from CVS: exi/gnus-faq.texi ([4.1]): Typo. * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-6 Update from CVS
author Miles Bader <miles@gnu.org>
date Sat, 22 Jan 2005 21:39:38 +0000
parents eac554634bfa 1c3d052ef4bf
children 3ebd9bdb4fe5
comparison
equal deleted inserted replaced
90081:b1b6eac1aaa3 90082:6d92d69fae33
59 makes Control-] (decimal code 29) the stop character. 59 makes Control-] (decimal code 29) the stop character.
60 Typing Control-] will cause immediate stop. You cannot 60 Typing Control-] will cause immediate stop. You cannot
61 use the set command until the inferior process has been started. 61 use the set command until the inferior process has been started.
62 Put a breakpoint early in `main', or suspend the Emacs, 62 Put a breakpoint early in `main', or suspend the Emacs,
63 to get an opportunity to do the set command. 63 to get an opportunity to do the set command.
64
65 When Emacs is running in a terminal, it is useful to use a separate terminal
66 for the debug session. This can be done by starting Emacs as usual, then
67 attaching to it from gdb with the `attach' command which is explained in the
68 node "Attach" of the GDB manual.
64 69
65 ** Examining Lisp object values. 70 ** Examining Lisp object values.
66 71
67 When you have a live process to debug, and it has not encountered a 72 When you have a live process to debug, and it has not encountered a
68 fatal error, you can use the GDB command `pr'. First print the value 73 fatal error, you can use the GDB command `pr'. First print the value
113 cd src 118 cd src
114 gdb emacs 119 gdb emacs
115 b set_frame_buffer_list 120 b set_frame_buffer_list
116 r -q 121 r -q
117 122
118 Then when Emacs it hits the breakpoint: 123 Then Emacs hits the breakpoint:
119 124
120 (gdb) p frame 125 (gdb) p frame
121 $1 = 139854428 126 $1 = 139854428
122 (gdb) xtype 127 (gdb) xtype
123 Lisp_Vectorlike 128 Lisp_Vectorlike