diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2007-10-04 07:46:26 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2007-10-04 07:46:26 +0000 |
commit | a55f4be1a13551a7965fff2514d57e05859814df (patch) | |
tree | 7f1925959e8265c1d3b1d19a57f5fdff32cc7048 /lisp/progmodes | |
parent | 4d4cc7800d2e2ec4bd6d05bc25a9baf1fe849b8f (diff) | |
download | emacs-a55f4be1a13551a7965fff2514d57e05859814df.tar.gz |
(gud-gud-gdb-command-name): New option.
(gud-gdb): New function for old M-x gdb (text command mode).
(gud-gdb-command-name, gdb): Move to gdb-ui.el.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r-- | lisp/progmodes/gud.el | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 8e7ddd2fb32..2d715b7a4e6 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el @@ -589,8 +589,10 @@ required by the caller." ;; History of argument lists passed to gdb. (defvar gud-gdb-history nil) -(defcustom gud-gdb-command-name "gdb --annotate=3" - "Default command to execute an executable under the GDB debugger." +(defcustom gud-gud-gdb-command-name "gdb --fullname" + "Default command to run an executable under GDB in text command mode. +The option \"--fullname\" must be included in it's value." + :type 'string :group 'gud) @@ -695,8 +697,9 @@ required by the caller." (defvar gud-filter-pending-text nil "Non-nil means this is text that has been saved for later in `gud-filter'.") +;; The old gdb command. The new one is in gdb-ui.el. ;;;###autoload -(defun gdb (command-line) +(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. By @@ -709,7 +712,7 @@ current Emacs session, or the custom variable `gud-gdb-command-name' for all future sessions. You need to use text command mode to debug multiple programs within one Emacs session." - (interactive (list (gud-query-cmdline 'gdb))) + (interactive (list (gud-query-cmdline 'gud-gdb))) (require 'gdb-ui) @@ -757,7 +760,7 @@ session." (setq gud-running nil) (setq gdb-ready nil) (setq gud-filter-pending-text nil) - (run-hooks 'gdb-mode-hook)) + (run-hooks 'gud-gdb-mode-hook)) ;; One of the nice features of GDB is its impressive support for ;; context-sensitive command completion. We preserve that feature |