diff options
| author | Nick Roberts | 2009-01-20 05:20:40 +0000 |
|---|---|---|
| committer | Nick Roberts | 2009-01-20 05:20:40 +0000 |
| commit | b424697fe67ddd0bdcd5b5180ba5558e33bf340b (patch) | |
| tree | a0a097261c64281e096bcad5c467fbc430b7e64f | |
| parent | 9aa5f2fbf4021f55fba3c03548ef61bf82cad1c6 (diff) | |
| download | emacs-b424697fe67ddd0bdcd5b5180ba5558e33bf340b.tar.gz emacs-b424697fe67ddd0bdcd5b5180ba5558e33bf340b.zip | |
(Debuggers): Revert some of 2008-10-31 change to
raise GUD subsections.
| -rw-r--r-- | doc/emacs/building.texi | 55 |
1 files changed, 18 insertions, 37 deletions
diff --git a/doc/emacs/building.texi b/doc/emacs/building.texi index 99e3ce40fe2..d6054dc61f9 100644 --- a/doc/emacs/building.texi +++ b/doc/emacs/building.texi | |||
| @@ -449,36 +449,6 @@ Flymake, flymake, The Flymake Manual}. | |||
| 449 | @cindex debuggers | 449 | @cindex debuggers |
| 450 | @cindex GUD library | 450 | @cindex GUD library |
| 451 | @cindex GDB | 451 | @cindex GDB |
| 452 | |||
| 453 | Emacs provides two separate facilities for using external symbolic | ||
| 454 | debuggers, which are programs for testing and debugging other | ||
| 455 | programs: | ||
| 456 | @itemize @bullet | ||
| 457 | @item | ||
| 458 | The Grand Unified Debugger (GUD) provides a simple, text-based | ||
| 459 | interface for a wide variety of symbolic debuggers, including the GNU | ||
| 460 | Debugger (GDB), the Perl debugger, the Python debugger, and the Java | ||
| 461 | Debugger. | ||
| 462 | |||
| 463 | @item | ||
| 464 | The GDB Graphical Interface is an Emacs package that interacts with | ||
| 465 | GDB to turn Emacs into a graphical ``integrated development | ||
| 466 | environment'', or IDE. | ||
| 467 | @end itemize | ||
| 468 | |||
| 469 | In addition, Emacs contains a built-in system for debugging Emacs | ||
| 470 | Lisp programs. @xref{Debugging,, The Lisp Debugger, elisp, the Emacs | ||
| 471 | Lisp Reference Manual}, for information on the Emacs Lisp debugger. | ||
| 472 | |||
| 473 | @menu | ||
| 474 | * GUD:: The Grand Unified Debugger. | ||
| 475 | * GDB Graphical Interface:: A mode that uses GDB features to implement | ||
| 476 | a graphical Emacs debugging environment. | ||
| 477 | @end menu | ||
| 478 | |||
| 479 | @node GUD | ||
| 480 | @subsection GUD | ||
| 481 | @cindex GUD library | ||
| 482 | @cindex DBX | 452 | @cindex DBX |
| 483 | @cindex SDB | 453 | @cindex SDB |
| 484 | @cindex XDB | 454 | @cindex XDB |
| @@ -498,25 +468,36 @@ PDB, or the Java Debugger JDB. | |||
| 498 | * Debugger Operation:: Connection between the debugger and source buffers. | 468 | * Debugger Operation:: Connection between the debugger and source buffers. |
| 499 | * Commands of GUD:: Key bindings for common commands. | 469 | * Commands of GUD:: Key bindings for common commands. |
| 500 | * GUD Customization:: Defining your own commands for GUD. | 470 | * GUD Customization:: Defining your own commands for GUD. |
| 471 | * GDB Graphical Interface:: An enhanced mode that uses GDB features to | ||
| 472 | implement a graphical debugging environment through | ||
| 473 | Emacs. | ||
| 501 | @end menu | 474 | @end menu |
| 502 | 475 | ||
| 503 | @node Starting GUD | 476 | @node Starting GUD |
| 504 | @subsubsection Starting GUD | 477 | @subsection Starting GUD |
| 505 | 478 | ||
| 506 | There are several commands for starting a debugger under GUD, each | 479 | There are several commands for starting a debugger under GUD, each |
| 507 | corresponding to a particular debugger program. | 480 | corresponding to a particular debugger program. |
| 508 | 481 | ||
| 509 | @table @kbd | 482 | @table @kbd |
| 483 | @item M-x gdb @key{RET} @var{file} @key{RET} | ||
| 484 | @findex gdb | ||
| 485 | Run GDB as a subprocess of Emacs. This uses an IDE-like graphical | ||
| 486 | interface; see @ref{GDB Graphical Interface}. Only GDB works with the | ||
| 487 | graphical interface. | ||
| 488 | |||
| 510 | @item M-x gud-gdb @key{RET} @var{file} @key{RET} | 489 | @item M-x gud-gdb @key{RET} @var{file} @key{RET} |
| 511 | @findex gud-gdb | 490 | @findex gud-gdb |
| 512 | Run GDB as a subprocess of Emacs. This command creates a buffer for | 491 | Run GDB as a subprocess of Emacs. This command creates a buffer for |
| 513 | input and output to GDB, and switches to it. If a GDB buffer already | 492 | input and output to GDB, and switches to it. If a GDB buffer already |
| 514 | exists, it just switches to that buffer. (To run GDB in an IDE-like | 493 | exists, it just switches to that buffer. |
| 515 | graphical interface instead, see @ref{GDB Graphical Interface}.) | ||
| 516 | 494 | ||
| 517 | @item M-x dbx @key{RET} @var{file} @key{RET} | 495 | @item M-x dbx @key{RET} @var{file} @key{RET} |
| 518 | @findex dbx | 496 | @findex dbx |
| 519 | Run DBX as a subprocess of Emacs. | 497 | Run DBX as a subprocess of Emacs. Since Emacs does not implement a |
| 498 | graphical interface for DBX, communication with DBX works by typing | ||
| 499 | commands in the GUD interaction buffer. The same is true for all | ||
| 500 | the other supported debuggers. | ||
| 520 | 501 | ||
| 521 | @item M-x xdb @key{RET} @var{file} @key{RET} | 502 | @item M-x xdb @key{RET} @var{file} @key{RET} |
| 522 | @findex xdb | 503 | @findex xdb |
| @@ -568,7 +549,7 @@ GDB remote debugging feature, for example (@pxref{Remote Debugging,, | |||
| 568 | Debugging Remote Programs, gdb, The GNU debugger}). | 549 | Debugging Remote Programs, gdb, The GNU debugger}). |
| 569 | 550 | ||
| 570 | @node Debugger Operation | 551 | @node Debugger Operation |
| 571 | @subsubsection Debugger Operation | 552 | @subsection Debugger Operation |
| 572 | 553 | ||
| 573 | @cindex fringes, and current execution line in GUD | 554 | @cindex fringes, and current execution line in GUD |
| 574 | Generally when you run a debugger with GUD, the debugger uses an Emacs | 555 | Generally when you run a debugger with GUD, the debugger uses an Emacs |
| @@ -615,7 +596,7 @@ interface supports GUD tooltips and assures they will not cause side | |||
| 615 | effects. | 596 | effects. |
| 616 | 597 | ||
| 617 | @node Commands of GUD | 598 | @node Commands of GUD |
| 618 | @subsubsection Commands of GUD | 599 | @subsection Commands of GUD |
| 619 | 600 | ||
| 620 | The GUD interaction buffer uses a variant of Shell mode, so the | 601 | The GUD interaction buffer uses a variant of Shell mode, so the |
| 621 | Emacs commands of Shell mode are available (@pxref{Shell Mode}). All | 602 | Emacs commands of Shell mode are available (@pxref{Shell Mode}). All |
| @@ -772,7 +753,7 @@ enter a tab as input to the program you are debugging with GDB. | |||
| 772 | Instead, type @kbd{C-q @key{TAB}} to enter a tab. | 753 | Instead, type @kbd{C-q @key{TAB}} to enter a tab. |
| 773 | 754 | ||
| 774 | @node GUD Customization | 755 | @node GUD Customization |
| 775 | @subsubsection GUD Customization | 756 | @subsection GUD Customization |
| 776 | 757 | ||
| 777 | @vindex gdb-mode-hook | 758 | @vindex gdb-mode-hook |
| 778 | @vindex dbx-mode-hook | 759 | @vindex dbx-mode-hook |