336 |
@findex gdb |
@findex gdb |
337 |
Run GDB as a subprocess of Emacs. If the variable |
Run GDB as a subprocess of Emacs. If the variable |
338 |
@code{gud-gdb-command-name} is ``gdb --annotate=3'' (the default |
@code{gud-gdb-command-name} is ``gdb --annotate=3'' (the default |
339 |
value) then GDB starts as for @kbd{M-x gdba} below. If you want to |
value) then GDB starts as for @kbd{M-x gdba} below. If you want GDB |
340 |
GDB to start as in Emacs 21.3 and earlier then set |
to start as in Emacs 21.3 and earlier then edit the string in the |
341 |
@code{gud-gdb-command-name} to ``gdb --fullname''. In this case, the |
minibuffer or set @code{gud-gdb-command-name} to ``gdb --fullname''. |
342 |
command creates a buffer for input and output to GDB, and switches to |
You need to do this if you want to run multiple debugging sessions |
343 |
it. If a GDB buffer already exists, it just switches to that buffer. |
within one Emacs session. In this case, the command creates a buffer |
344 |
|
for input and output to GDB, and switches to it. If a GDB buffer |
345 |
|
already exists, it just switches to that buffer. |
346 |
|
|
347 |
@item M-x gdba @key{RET} @var{file} @key{RET} |
@item M-x gdba @key{RET} @var{file} @key{RET} |
348 |
Run GDB as a subprocess of Emacs, providing a graphical interface |
Run GDB as a subprocess of Emacs, providing a graphical interface |