+2009-08-09 Dmitry Dzhus <dima@sphinx.net.ru>
+
+ * progmodes/gdb-mi.el (gdb-gud-context-call): Does not need to be
+ a macro.
+ (gdb-registers-handler-custom): Do not fail when register names
+ are unavailable.
+
2009-08-08 Dmitry Dzhus <dima@sphinx.net.ru>
* progmodes/gdb-mi.el (gdb-control-all-threads)
command))
;; TODO Document this. We use noarg when not in gud-def
-(defmacro gdb-gud-context-call (cmd1 &optional cmd2 noall noarg)
- `(gud-call
- (concat
- (gdb-gud-context-command ,cmd1 ,noall)
- ,cmd2) ,(when (not noarg) 'arg)))
+(defun gdb-gud-context-call (cmd1 &optional cmd2 noall noarg)
+ (gud-call
+ (concat
+ (gdb-gud-context-command cmd1 noall)
+ cmd2) (when (not noarg) 'arg)))
;;;###autoload
(defun gdb (command-line)
(value (gdb-get-field register 'value))
(register-name (nth (string-to-number register-number)
gdb-register-names)))
+ (when register-name
(gdb-table-add-row
table
(list
value))
`(mouse-face highlight
help-echo "mouse-2: edit value"
- gdb-register-name ,register-name))))
+ gdb-register-name ,register-name)))))
(insert (gdb-table-string table " "))
(setq mode-name
(gdb-current-context-mode-name "Registers"))))