diff options
| author | Eli Zaretskii | 2016-08-01 22:58:37 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-08-01 22:58:37 +0300 |
| commit | baa7abde77e815a0645839adae1cefdb40c984a2 (patch) | |
| tree | 9e587a558a638cd61042d300c5c7f3bbe103a553 | |
| parent | aa4271ab7299c033760db64bf15476a5e0eee2a5 (diff) | |
| download | emacs-baa7abde77e815a0645839adae1cefdb40c984a2.tar.gz emacs-baa7abde77e815a0645839adae1cefdb40c984a2.zip | |
Improve doc strings of 'gud-gdb' and 'gdb'
* lisp/progmodes/gdb-mi.el (gdb):
* lisp/progmodes/gud.el (gud-gdb): Doc fix. (Bug#24125)
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 20 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 12 |
2 files changed, 21 insertions, 11 deletions
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 5ad101df7bf..d243650d73a 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -673,14 +673,18 @@ NOARG must be t when this macro is used outside `gud-def'" | |||
| 673 | 673 | ||
| 674 | ;;;###autoload | 674 | ;;;###autoload |
| 675 | (defun gdb (command-line) | 675 | (defun gdb (command-line) |
| 676 | "Run gdb on program FILE in buffer *gud-FILE*. | 676 | "Run gdb passing it COMMAND-LINE as arguments. |
| 677 | The directory containing FILE becomes the initial working directory | 677 | |
| 678 | and source-file directory for your debugger. | 678 | If COMMAND-LINE names a program FILE to debug, gdb will run in |
| 679 | 679 | a buffer named *gud-FILE*, and the directory containing FILE | |
| 680 | COMMAND-LINE is the shell command for starting the gdb session. | 680 | becomes the initial working directory and source-file directory |
| 681 | It should be a string consisting of the name of the gdb | 681 | for your debugger. |
| 682 | executable followed by command line options. The command line | 682 | If COMMAND-LINE requests that gdb attaches to a process PID, gdb |
| 683 | options should include \"-i=mi\" to use gdb's MI text interface. | 683 | will run in *gud-PID*, otherwise it will run in *gud*; in these |
| 684 | cases the initial working directory is the default-directory of | ||
| 685 | the buffer in which this command was invoked. | ||
| 686 | |||
| 687 | COMMAND-LINE should include \"-i=mi\" to use gdb's MI text interface. | ||
| 684 | Note that the old \"--annotate\" option is no longer supported. | 688 | Note that the old \"--annotate\" option is no longer supported. |
| 685 | 689 | ||
| 686 | If option `gdb-many-windows' is nil (the default value) then gdb just | 690 | If option `gdb-many-windows' is nil (the default value) then gdb just |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 356cd3e0532..0ac48f5f527 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -733,9 +733,15 @@ It should return a list of completion strings.") | |||
| 733 | ;; The old gdb command (text command mode). The new one is in gdb-mi.el. | 733 | ;; The old gdb command (text command mode). The new one is in gdb-mi.el. |
| 734 | ;;;###autoload | 734 | ;;;###autoload |
| 735 | (defun gud-gdb (command-line) | 735 | (defun gud-gdb (command-line) |
| 736 | "Run gdb on program FILE in buffer *gud-FILE*. | 736 | "Run gdb passing it COMMAND-LINE as arguments. |
| 737 | The directory containing FILE becomes the initial working | 737 | If COMMAND-LINE names a program FILE to debug, gdb will run in |
| 738 | directory and source-file directory for your debugger." | 738 | a buffer named *gud-FILE*, and the directory containing FILE |
| 739 | becomes the initial working directory and source-file directory | ||
| 740 | for your debugger. | ||
| 741 | If COMMAND-LINE requests that gdb attaches to a process PID, gdb | ||
| 742 | will run in *gud-PID*, otherwise it will run in *gud*; in these | ||
| 743 | cases the initial working directory is the default-directory of | ||
| 744 | the buffer in which this command was invoked." | ||
| 739 | (interactive (list (gud-query-cmdline 'gud-gdb))) | 745 | (interactive (list (gud-query-cmdline 'gud-gdb))) |
| 740 | 746 | ||
| 741 | (when (and gud-comint-buffer | 747 | (when (and gud-comint-buffer |