aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-08-01 22:58:37 +0300
committerEli Zaretskii2016-08-01 22:58:37 +0300
commitbaa7abde77e815a0645839adae1cefdb40c984a2 (patch)
tree9e587a558a638cd61042d300c5c7f3bbe103a553
parentaa4271ab7299c033760db64bf15476a5e0eee2a5 (diff)
downloademacs-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.el20
-rw-r--r--lisp/progmodes/gud.el12
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.
677The directory containing FILE becomes the initial working directory 677
678and source-file directory for your debugger. 678If COMMAND-LINE names a program FILE to debug, gdb will run in
679 679a buffer named *gud-FILE*, and the directory containing FILE
680COMMAND-LINE is the shell command for starting the gdb session. 680becomes the initial working directory and source-file directory
681It should be a string consisting of the name of the gdb 681for your debugger.
682executable followed by command line options. The command line 682If COMMAND-LINE requests that gdb attaches to a process PID, gdb
683options should include \"-i=mi\" to use gdb's MI text interface. 683will run in *gud-PID*, otherwise it will run in *gud*; in these
684cases the initial working directory is the default-directory of
685the buffer in which this command was invoked.
686
687COMMAND-LINE should include \"-i=mi\" to use gdb's MI text interface.
684Note that the old \"--annotate\" option is no longer supported. 688Note that the old \"--annotate\" option is no longer supported.
685 689
686If option `gdb-many-windows' is nil (the default value) then gdb just 690If 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.
737The directory containing FILE becomes the initial working 737If COMMAND-LINE names a program FILE to debug, gdb will run in
738directory and source-file directory for your debugger." 738a buffer named *gud-FILE*, and the directory containing FILE
739becomes the initial working directory and source-file directory
740for your debugger.
741If COMMAND-LINE requests that gdb attaches to a process PID, gdb
742will run in *gud-PID*, otherwise it will run in *gud*; in these
743cases the initial working directory is the default-directory of
744the 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