comparison etc/DEBUG @ 59613:1c3d052ef4bf

Suggest separate terminal for debug session.
author Nick Roberts <nickrob@snap.net.nz>
date Tue, 18 Jan 2005 01:01:29 +0000
parents eae7969f1b06
children b9511a236e82 6d92d69fae33
comparison
equal deleted inserted replaced
59612:69ffba6567d6 59613:1c3d052ef4bf
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