diff options
| author | Nick Roberts | 2005-10-26 01:01:34 +0000 |
|---|---|---|
| committer | Nick Roberts | 2005-10-26 01:01:34 +0000 |
| commit | 9317517c79bb14815aed8a795372bc8145d82d26 (patch) | |
| tree | d3db561f881d2d1cbdbdc35087884a1bbe254731 | |
| parent | 14924bb1e0166d57843d285042657a76033dcd80 (diff) | |
| download | emacs-9317517c79bb14815aed8a795372bc8145d82d26.tar.gz emacs-9317517c79bb14815aed8a795372bc8145d82d26.zip | |
(def-gdb-auto-updated-buffer)
(def-gdb-auto-update-trigger): Simplify construction.
(gdb-locals-buffer): Use def-gdb-auto-update-trigger instead of
def-gdb-auto-updated-buffer as gdb-info-locals-handler is
defined explicitly.
(gdb-assembler-buffer): Use def-gdb-auto-update-handler instead of
def-gdb-auto-updated-buffer as gdb-invalidate-assembler is
defined explicitly.
(gdb-info-locals-custom): Remove as it's a no-op.
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index 459ea405eb3..91ace236dbb 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1200,7 +1200,7 @@ happens to be appropriate." | |||
| 1200 | (defmacro def-gdb-auto-update-trigger (name demand-predicate gdb-command | 1200 | (defmacro def-gdb-auto-update-trigger (name demand-predicate gdb-command |
| 1201 | output-handler) | 1201 | output-handler) |
| 1202 | `(defun ,name (&optional ignored) | 1202 | `(defun ,name (&optional ignored) |
| 1203 | (if (and (,demand-predicate) | 1203 | (if (and ,demand-predicate |
| 1204 | (not (member ',name | 1204 | (not (member ',name |
| 1205 | gdb-pending-triggers))) | 1205 | gdb-pending-triggers))) |
| 1206 | (progn | 1206 | (progn |
| @@ -1232,7 +1232,7 @@ happens to be appropriate." | |||
| 1232 | `(progn | 1232 | `(progn |
| 1233 | (def-gdb-auto-update-trigger ,trigger-name | 1233 | (def-gdb-auto-update-trigger ,trigger-name |
| 1234 | ;; The demand predicate: | 1234 | ;; The demand predicate: |
| 1235 | (lambda () (gdb-get-buffer ',buffer-key)) | 1235 | (gdb-get-buffer ',buffer-key) |
| 1236 | ,gdb-command | 1236 | ,gdb-command |
| 1237 | ,output-handler-name) | 1237 | ,output-handler-name) |
| 1238 | (def-gdb-auto-update-handler ,output-handler-name | 1238 | (def-gdb-auto-update-handler ,output-handler-name |
| @@ -2153,11 +2153,10 @@ corresponding to the mode line clicked." | |||
| 2153 | 'gdb-locals-buffer-name | 2153 | 'gdb-locals-buffer-name |
| 2154 | 'gdb-locals-mode) | 2154 | 'gdb-locals-mode) |
| 2155 | 2155 | ||
| 2156 | (def-gdb-auto-updated-buffer gdb-locals-buffer | 2156 | (def-gdb-auto-update-trigger gdb-invalidate-locals |
| 2157 | gdb-invalidate-locals | 2157 | (gdb-get-buffer 'gdb-locals-buffer) |
| 2158 | "server info locals\n" | 2158 | "server info locals\n" |
| 2159 | gdb-info-locals-handler | 2159 | gdb-info-locals-handler) |
| 2160 | gdb-info-locals-custom) | ||
| 2161 | 2160 | ||
| 2162 | ;; Abbreviate for arrays and structures. | 2161 | ;; Abbreviate for arrays and structures. |
| 2163 | ;; These can be expanded using gud-display. | 2162 | ;; These can be expanded using gud-display. |
| @@ -2187,9 +2186,6 @@ corresponding to the mode line clicked." | |||
| 2187 | (set-window-point window p))))) | 2186 | (set-window-point window p))))) |
| 2188 | (run-hooks 'gdb-info-locals-hook)) | 2187 | (run-hooks 'gdb-info-locals-hook)) |
| 2189 | 2188 | ||
| 2190 | (defun gdb-info-locals-custom () | ||
| 2191 | nil) | ||
| 2192 | |||
| 2193 | (defvar gdb-locals-mode-map | 2189 | (defvar gdb-locals-mode-map |
| 2194 | (let ((map (make-sparse-keymap))) | 2190 | (let ((map (make-sparse-keymap))) |
| 2195 | (suppress-keymap map) | 2191 | (suppress-keymap map) |
| @@ -2614,12 +2610,9 @@ BUFFER nil or omitted means use the current buffer." | |||
| 2614 | 'gdb-assembler-buffer-name | 2610 | 'gdb-assembler-buffer-name |
| 2615 | 'gdb-assembler-mode) | 2611 | 'gdb-assembler-mode) |
| 2616 | 2612 | ||
| 2617 | (def-gdb-auto-updated-buffer gdb-assembler-buffer | 2613 | (def-gdb-auto-update-handler gdb-assembler-handler |
| 2618 | gdb-invalidate-assembler | 2614 | gdb-invalidate-assembler |
| 2619 | (concat gdb-server-prefix "disassemble " | 2615 | gdb-assembler-buffer |
| 2620 | (if (member gdb-frame-address '(nil "main")) nil "0x") | ||
| 2621 | gdb-frame-address "\n") | ||
| 2622 | gdb-assembler-handler | ||
| 2623 | gdb-assembler-custom) | 2616 | gdb-assembler-custom) |
| 2624 | 2617 | ||
| 2625 | (defun gdb-assembler-custom () | 2618 | (defun gdb-assembler-custom () |