diff options
| author | Dmitry Dzhus | 2009-08-09 00:17:01 +0000 |
|---|---|---|
| committer | Dmitry Dzhus | 2009-08-09 00:17:01 +0000 |
| commit | 2db0ae07bce8513db2975836d6e20bfdee9c5f1c (patch) | |
| tree | 94278c4cb7afd3f06b7560e227c0834fa078e0b6 | |
| parent | dc076f0b1bf2f69fd1606608e2013791ef7060ea (diff) | |
| download | emacs-2db0ae07bce8513db2975836d6e20bfdee9c5f1c.tar.gz emacs-2db0ae07bce8513db2975836d6e20bfdee9c5f1c.zip | |
(gdb-gud-context-call): Does not need to be a macro.
(gdb-registers-handler-custom): Do not fail when register names
are unavailable.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 13 |
2 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b6213ebcab2..58a607bc505 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-08-09 Dmitry Dzhus <dima@sphinx.net.ru> | ||
| 2 | |||
| 3 | * progmodes/gdb-mi.el (gdb-gud-context-call): Does not need to be | ||
| 4 | a macro. | ||
| 5 | (gdb-registers-handler-custom): Do not fail when register names | ||
| 6 | are unavailable. | ||
| 7 | |||
| 1 | 2009-08-08 Dmitry Dzhus <dima@sphinx.net.ru> | 8 | 2009-08-08 Dmitry Dzhus <dima@sphinx.net.ru> |
| 2 | 9 | ||
| 3 | * progmodes/gdb-mi.el (gdb-control-all-threads) | 10 | * progmodes/gdb-mi.el (gdb-control-all-threads) |
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 5a8fde8203e..975908f2166 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -566,11 +566,11 @@ When `gdb-non-stop' is nil, return COMMAND unchanged." | |||
| 566 | command)) | 566 | command)) |
| 567 | 567 | ||
| 568 | ;; TODO Document this. We use noarg when not in gud-def | 568 | ;; TODO Document this. We use noarg when not in gud-def |
| 569 | (defmacro gdb-gud-context-call (cmd1 &optional cmd2 noall noarg) | 569 | (defun gdb-gud-context-call (cmd1 &optional cmd2 noall noarg) |
| 570 | `(gud-call | 570 | (gud-call |
| 571 | (concat | 571 | (concat |
| 572 | (gdb-gud-context-command ,cmd1 ,noall) | 572 | (gdb-gud-context-command cmd1 noall) |
| 573 | ,cmd2) ,(when (not noarg) 'arg))) | 573 | cmd2) (when (not noarg) 'arg))) |
| 574 | 574 | ||
| 575 | ;;;###autoload | 575 | ;;;###autoload |
| 576 | (defun gdb (command-line) | 576 | (defun gdb (command-line) |
| @@ -3550,6 +3550,7 @@ member." | |||
| 3550 | (value (gdb-get-field register 'value)) | 3550 | (value (gdb-get-field register 'value)) |
| 3551 | (register-name (nth (string-to-number register-number) | 3551 | (register-name (nth (string-to-number register-number) |
| 3552 | gdb-register-names))) | 3552 | gdb-register-names))) |
| 3553 | (when register-name | ||
| 3553 | (gdb-table-add-row | 3554 | (gdb-table-add-row |
| 3554 | table | 3555 | table |
| 3555 | (list | 3556 | (list |
| @@ -3559,7 +3560,7 @@ member." | |||
| 3559 | value)) | 3560 | value)) |
| 3560 | `(mouse-face highlight | 3561 | `(mouse-face highlight |
| 3561 | help-echo "mouse-2: edit value" | 3562 | help-echo "mouse-2: edit value" |
| 3562 | gdb-register-name ,register-name)))) | 3563 | gdb-register-name ,register-name))))) |
| 3563 | (insert (gdb-table-string table " ")) | 3564 | (insert (gdb-table-string table " ")) |
| 3564 | (setq mode-name | 3565 | (setq mode-name |
| 3565 | (gdb-current-context-mode-name "Registers")))) | 3566 | (gdb-current-context-mode-name "Registers")))) |