summaryrefslogtreecommitdiff
path: root/lisp/progmodes/gud.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2016-08-01 22:58:37 +0300
committerEli Zaretskii <eliz@gnu.org>2016-08-01 22:58:37 +0300
commitbaa7abde77e815a0645839adae1cefdb40c984a2 (patch)
tree9e587a558a638cd61042d300c5c7f3bbe103a553 /lisp/progmodes/gud.el
parentaa4271ab7299c033760db64bf15476a5e0eee2a5 (diff)
downloademacs-baa7abde77e815a0645839adae1cefdb40c984a2.tar.gz
Improve doc strings of 'gud-gdb' and 'gdb'
* lisp/progmodes/gdb-mi.el (gdb): * lisp/progmodes/gud.el (gud-gdb): Doc fix. (Bug#24125)
Diffstat (limited to 'lisp/progmodes/gud.el')
-rw-r--r--lisp/progmodes/gud.el12
1 files changed, 9 insertions, 3 deletions
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.")
;; The old gdb command (text command mode). The new one is in gdb-mi.el.
;;;###autoload
(defun gud-gdb (command-line)
- "Run gdb on program FILE in buffer *gud-FILE*.
-The directory containing FILE becomes the initial working
-directory and source-file directory for your debugger."
+ "Run gdb passing it COMMAND-LINE as arguments.
+If COMMAND-LINE names a program FILE to debug, gdb will run in
+a buffer named *gud-FILE*, and the directory containing FILE
+becomes the initial working directory and source-file directory
+for your debugger.
+If COMMAND-LINE requests that gdb attaches to a process PID, gdb
+will run in *gud-PID*, otherwise it will run in *gud*; in these
+cases the initial working directory is the default-directory of
+the buffer in which this command was invoked."
(interactive (list (gud-query-cmdline 'gud-gdb)))
(when (and gud-comint-buffer