aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-03-06 18:08:00 +0000
committerRichard M. Stallman2005-03-06 18:08:00 +0000
commit499de9ba7f26260da0913da0e09e574bc153f4de (patch)
treed6c8d9621a939d47a7654ee384a93fc5f904e190
parent8018c1e89240ab60a3b20b7c69af6f3f024808f8 (diff)
downloademacs-499de9ba7f26260da0913da0e09e574bc153f4de.tar.gz
emacs-499de9ba7f26260da0913da0e09e574bc153f4de.zip
(Starting GUD): Don't explain text vs graphical GDB here.
Just mention they exist, and xref. Delete "just one debugger process". (Debugger Operation): Move GUD tooltip info here. (GUD Tooltips): Node deleted. (GDB Graphical Interface): Explain the two GDB modes here.
-rw-r--r--man/building.texi48
1 files changed, 20 insertions, 28 deletions
diff --git a/man/building.texi b/man/building.texi
index 10ac5142d61..0adb55e38e7 100644
--- a/man/building.texi
+++ b/man/building.texi
@@ -325,7 +325,6 @@ Lisp programs.
325* Debugger Operation:: Connection between the debugger and source buffers. 325* Debugger Operation:: Connection between the debugger and source buffers.
326* Commands of GUD:: Key bindings for common commands. 326* Commands of GUD:: Key bindings for common commands.
327* GUD Customization:: Defining your own commands for GUD. 327* GUD Customization:: Defining your own commands for GUD.
328* GUD Tooltips:: Showing variable values by pointing with the mouse.
329* GDB Graphical Interface:: An enhanced mode that uses GDB features to 328* GDB Graphical Interface:: An enhanced mode that uses GDB features to
330 implement a graphical debugging environment through 329 implement a graphical debugging environment through
331 Emacs. 330 Emacs.
@@ -340,18 +339,9 @@ to a particular debugger program.
340@table @kbd 339@table @kbd
341@item M-x gdb @key{RET} @var{file} @key{RET} 340@item M-x gdb @key{RET} @var{file} @key{RET}
342@findex gdb 341@findex gdb
343Run GDB as a subprocess of Emacs. By default, GDB starts as for 342Run GDB as a subprocess of Emacs. By default, this operates in
344@kbd{M-x gdba} below. If you want GDB to start as in Emacs 21.3 and 343graphical mode; @xref{GDB Graphical Interface}. Graphical mode
345earlier then edit the string in the minibuffer or set 344does not support any other debuggers.
346@code{gud-gdb-command-name} to ``gdb --fullname''. You need to do
347this if you want to run multiple debugging sessions within one Emacs
348session. In this case, the command creates a buffer for input and
349output to GDB, and switches to it. If a GDB buffer already exists, it
350just switches to that buffer.
351
352@item M-x gdba @key{RET} @var{file} @key{RET}
353Run GDB as a subprocess of Emacs, providing a graphical interface
354to GDB features through Emacs. @xref{GDB Graphical Interface}.
355 345
356@item M-x dbx @key{RET} @var{file} @key{RET} 346@item M-x dbx @key{RET} @var{file} @key{RET}
357@findex dbx 347@findex dbx
@@ -396,8 +386,6 @@ debugger supports. However, shell wildcards and variables are not
396allowed. GUD assumes that the first argument not starting with a 386allowed. GUD assumes that the first argument not starting with a
397@samp{-} is the executable file name. 387@samp{-} is the executable file name.
398 388
399 Emacs can only run one debugger process at a time.
400
401@node Debugger Operation 389@node Debugger Operation
402@subsection Debugger Operation 390@subsection Debugger Operation
403 391
@@ -424,6 +412,14 @@ debugger buffer, which uses a variant of Shell mode. All the usual
424commands for your debugger are available, and you can use the Shell mode 412commands for your debugger are available, and you can use the Shell mode
425history commands to repeat them. @xref{Shell Mode}. 413history commands to repeat them. @xref{Shell Mode}.
426 414
415@cindex tooltips with GUD
416@vindex tooltip-gud-modes
417 The Tooltip facility (@pxref{Tooltips}) provides support for GUD@.
418You activate this feature by customizing the @code{tooltip} group.
419Then you can display a variable's value in a tooltip simply by
420pointing at it with the mouse. This operates in the GUD buffer and in
421source buffers with major modes in the list @code{tooltip-gud-modes}.
422
427@node Commands of GUD 423@node Commands of GUD
428@subsection Commands of GUD 424@subsection Commands of GUD
429 425
@@ -653,28 +649,24 @@ If you don't use @samp{%p} in the command string, the command you define
653ignores any numeric argument. 649ignores any numeric argument.
654@end table 650@end table
655 651
656@node GUD Tooltips
657@subsection GUD Tooltips
658
659@cindex tooltips with GUD
660The Tooltip facility (@pxref{Tooltips}) provides support for GUD@. If
661GUD support is activated by customizing the @code{tooltip} group,
662variable values can be displayed in tooltips by pointing at them with
663the mouse in the GUD buffer or in source buffers with major modes in the
664customizable list @code{tooltip-gud-modes}.
665
666@node GDB Graphical Interface 652@node GDB Graphical Interface
667@subsection GDB Graphical Interface 653@subsection GDB Graphical Interface
668 654
669By default, the command @code{gdb} starts GDB using a graphical 655 By default, the command @code{gdb} starts GDB using a graphical
670interface where you view and control the program's data using Emacs 656interface where you view and control the program's data using Emacs
671windows. You can still interact with GDB through the GUD buffer, but 657windows. You can still interact with GDB through the GUD buffer, but
672the point of this mode is that you can do it through menus and clicks, 658the point of this mode is that you can do it through menus and clicks,
673without needing to know GDB commands. 659without needing to know GDB commands.
674 660
661@vindex gud-gdb-command-name
675@findex gdba 662@findex gdba
676If you have customised @code{gud-gdb-command-name}, then start this 663 You can also run GDB in text command mode, which creates a buffer
677mode with the command @code{gdba}. 664for input and output to GDB. To do this, set
665@code{gud-gdb-command-name} to @code{"gdb --fullname"} or edit the
666startup command in the minibuffer to say that. You need to do use
667text command mode to run multiple debugging sessions within one Emacs
668session. If you have customised @code{gud-gdb-command-name} in that
669way, then you can use @kbd{M-x gdba} to invoke GDB in graphical mode.
678 670
679@menu 671@menu
680* Layout:: Control the number of displayed buffers. 672* Layout:: Control the number of displayed buffers.