diff options
| author | Miles Bader | 2007-11-09 09:45:30 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-11-09 09:45:30 +0000 |
| commit | c12ecb0af9679cc0e2fa0409931c34c035763469 (patch) | |
| tree | bd118c7ebc571de0dab542f48ad0c1648c6ccf72 /lisp/progmodes | |
| parent | e83d1fe87564d06d2fcbb4006dfd9133bc340aa8 (diff) | |
| parent | 9d2185d10e3da9062672d96d3b59fcea31ff17ed (diff) | |
| download | emacs-c12ecb0af9679cc0e2fa0409931c34c035763469.tar.gz emacs-c12ecb0af9679cc0e2fa0409931c34c035763469.zip | |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-923
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 10 | ||||
| -rw-r--r-- | lisp/progmodes/gud.el | 19 |
2 files changed, 13 insertions, 16 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index c6ae98c5b12..0d1a4b05d65 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -947,6 +947,12 @@ Changed values are highlighted with the face `font-lock-warning-face'." | |||
| 947 | :group 'gud | 947 | :group 'gud |
| 948 | :version "22.1") | 948 | :version "22.1") |
| 949 | 949 | ||
| 950 | (defcustom gdb-delete-out-of-scope t | ||
| 951 | "If non-nil delete watch expressions automatically when they go out of scope." | ||
| 952 | :type 'boolean | ||
| 953 | :group 'gud | ||
| 954 | :version "22.2") | ||
| 955 | |||
| 950 | (defun gdb-speedbar-expand-node (text token indent) | 956 | (defun gdb-speedbar-expand-node (text token indent) |
| 951 | "Expand the node the user clicked on. | 957 | "Expand the node the user clicked on. |
| 952 | TEXT is the text of the button we clicked on, a + or - item. | 958 | TEXT is the text of the button we clicked on, a + or - item. |
| @@ -3515,7 +3521,9 @@ in_scope=\"\\(.*?\\)\".*?}") | |||
| 3515 | (when var | 3521 | (when var |
| 3516 | (let ((match (match-string 3))) | 3522 | (let ((match (match-string 3))) |
| 3517 | (cond ((string-equal match "false") | 3523 | (cond ((string-equal match "false") |
| 3518 | (setcar (nthcdr 5 var) 'out-of-scope)) | 3524 | (if gdb-delete-out-of-scope |
| 3525 | (gdb-var-delete-1 varnum) | ||
| 3526 | (setcar (nthcdr 5 var) 'out-of-scope))) | ||
| 3519 | ((string-equal match "true") | 3527 | ((string-equal match "true") |
| 3520 | (setcar (nthcdr 5 var) 'changed) | 3528 | (setcar (nthcdr 5 var) 'changed) |
| 3521 | (setcar (nthcdr 4 var) | 3529 | (setcar (nthcdr 4 var) |
diff --git a/lisp/progmodes/gud.el b/lisp/progmodes/gud.el index 50dcd6a83bf..ce231f4c662 100644 --- a/lisp/progmodes/gud.el +++ b/lisp/progmodes/gud.el | |||
| @@ -709,25 +709,14 @@ The option \"--fullname\" must be included in this value." | |||
| 709 | (defvar gud-filter-pending-text nil | 709 | (defvar gud-filter-pending-text nil |
| 710 | "Non-nil means this is text that has been saved for later in `gud-filter'.") | 710 | "Non-nil means this is text that has been saved for later in `gud-filter'.") |
| 711 | 711 | ||
| 712 | ;; The old gdb command. The new one is in gdb-ui.el. | 712 | ;; The old gdb command (text command mode). The new one is in gdb-ui.el. |
| 713 | ;;;###autoload | 713 | ;;;###autoload |
| 714 | (defun gud-gdb (command-line) | 714 | (defun gud-gdb (command-line) |
| 715 | "Run gdb on program FILE in buffer *gud-FILE*. | 715 | "Run gdb on program FILE in buffer *gud-FILE*. |
| 716 | The directory containing FILE becomes the initial working | 716 | The directory containing FILE becomes the initial working |
| 717 | directory and source-file directory for your debugger. By | 717 | directory and source-file directory for your debugger." |
| 718 | default this command starts GDB using a graphical interface. See | ||
| 719 | `gdba' for more information. | ||
| 720 | |||
| 721 | To run GDB in text command mode, replace the GDB \"--annotate=3\" | ||
| 722 | option with \"--fullname\" either in the minibuffer for the | ||
| 723 | current Emacs session, or the custom variable | ||
| 724 | `gud-gdb-command-name' for all future sessions. You need to use | ||
| 725 | text command mode to debug multiple programs within one Emacs | ||
| 726 | session." | ||
| 727 | (interactive (list (gud-query-cmdline 'gud-gdb))) | 718 | (interactive (list (gud-query-cmdline 'gud-gdb))) |
| 728 | 719 | ||
| 729 | (require 'gdb-ui) | ||
| 730 | |||
| 731 | (when (and gud-comint-buffer | 720 | (when (and gud-comint-buffer |
| 732 | (buffer-name gud-comint-buffer) | 721 | (buffer-name gud-comint-buffer) |
| 733 | (get-buffer-process gud-comint-buffer) | 722 | (get-buffer-process gud-comint-buffer) |
| @@ -736,8 +725,8 @@ session." | |||
| 736 | (error | 725 | (error |
| 737 | "Multiple debugging requires restarting in text command mode")) | 726 | "Multiple debugging requires restarting in text command mode")) |
| 738 | 727 | ||
| 739 | (gud-common-init command-line nil 'gud-gdba-marker-filter) | 728 | (gud-common-init command-line nil 'gud-gdb-marker-filter) |
| 740 | (set (make-local-variable 'gud-minor-mode) 'gdba) | 729 | (set (make-local-variable 'gud-minor-mode) 'gdb) |
| 741 | 730 | ||
| 742 | (gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.") | 731 | (gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.") |
| 743 | (gud-def gud-tbreak "tbreak %f:%l" "\C-t" | 732 | (gud-def gud-tbreak "tbreak %f:%l" "\C-t" |