aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Roberts <[email protected]>2008-06-17 22:09:40 +0000
committerNick Roberts <[email protected]>2008-06-17 22:09:40 +0000
commit14b26c3304416c746a6cb6d20b015732a974bef3 (patch)
tree05c2495323fe38e3e4bc5d5191e8951397372483
parent4046ea061321c8dd383e8f02744544d36c33f9d2 (diff)
(gud-gdba-marker-filter): Don't switch to
text command mode. (gdb): Explain that gud-gdb is needed for text command mode.
-rw-r--r--lisp/progmodes/gdb-ui.el29
1 files changed, 6 insertions, 23 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 86f366d37a..9bea7c703a 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -262,10 +262,8 @@ detailed description of this mode.
| Stack buffer | Breakpoints/threads buffer |
+-----------------------------------+----------------------------------+
-To run GDB in text command mode, replace the GDB \"--annotate=3\"
-option with \"--fullname\" either in the minibuffer for the
-current Emacs session, or the custom variable
-`gud-gdb-command-name' for all future sessions. You need to use
+The option \"--annotate=3\" must be included in this value. To
+run GDB in text command mode, use `gud-gdb'. You need to use
text command mode to debug multiple programs within one Emacs
session."
(interactive (list (gud-query-cmdline 'gdb)))
@@ -1666,15 +1664,12 @@ happens to be appropriate."
(let* ((annotation-type (match-string 1 annotation))
(annotation-arguments (match-string 2 annotation))
(annotation-rule (assoc annotation-type
- gdb-annotation-rules))
- (fullname (string-match gdb-fullname-regexp annotation-type)))
+ gdb-annotation-rules)))
;; Stuff prior to the match is just ordinary output.
;; It is either concatenated to OUTPUT or directed
;; elsewhere.
- (setq output
- (gdb-concat-output output
- (concat before (if fullname "\n"))))
+ (setq output (gdb-concat-output output before))
;; Take that stuff off the gud-marker-acc.
(setq gud-marker-acc after)
@@ -1682,19 +1677,7 @@ happens to be appropriate."
;; Call the handler for this annotation.
(if annotation-rule
(funcall (car (cdr annotation-rule))
- annotation-arguments)
-
- ;; Switch to gud-gdb-marker-filter if appropriate.
- (when fullname
-
- ;; Extract the frame position from the marker.
- (setq gud-last-frame (cons (match-string 1 annotation)
- (string-to-number
- (match-string 2 annotation))))
-
- (set (make-local-variable 'gud-minor-mode) 'gdb)
- (set (make-local-variable 'gud-marker-filter)
- 'gud-gdb-marker-filter)))
+ annotation-arguments))
;; Else the annotation is not recognized. Ignore it silently,
;; so that GDB can add new annotations without causing
@@ -3263,7 +3246,7 @@ Kills the gdb buffers, and resets variables and the source buffers."
(remove-hook 'after-save-hook 'gdb-create-define-alist t))
(defun gdb-source-info ()
- "Find the source file where the program starts and displays it with related
+ "Find the source file where the program starts and display it with related
buffers."
(goto-char (point-min))
(if (and (search-forward "Located in " nil t)