aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Dzhus2009-07-07 19:54:08 +0000
committerDmitry Dzhus2009-07-07 19:54:08 +0000
commite7006f272c47da3f26df519d6b8b90bd6da68c3c (patch)
tree3f4fb45562567d09ef4c9b283291992273fd7a1f
parent17c1380b1f7deb7499a6c8df5f398fb245d60e71 (diff)
downloademacs-e7006f272c47da3f26df519d6b8b90bd6da68c3c.tar.gz
emacs-e7006f272c47da3f26df519d6b8b90bd6da68c3c.zip
* progmodes/gdb-mi.el (gdb-breakpoints-list-handler-custom): y/n
instead of on/off; do not highlight breakpoints without line information.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/progmodes/gdb-mi.el14
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6dd6c13c325..39b56a54c7f 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -15,6 +15,8 @@
15 (gdb-frame-handler): Match convention to for disassembly buffer 15 (gdb-frame-handler): Match convention to for disassembly buffer
16 mode name. 16 mode name.
17 (gdb-stack-list-frames-handler): Rewritten without regexps. 17 (gdb-stack-list-frames-handler): Rewritten without regexps.
18 (gdb-breakpoints-list-handler-custom): y/n instead of on/off; do
19 not highlight breakpoints without line information.
18 20
19 * progmodes/gdb-mi.el (gdb-init-1): Set mode name for disassembly 21 * progmodes/gdb-mi.el (gdb-init-1): Set mode name for disassembly
20 buffer properly. 22 buffer properly.
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el
index 21e47b514bb..ae5f135c2a9 100644
--- a/lisp/progmodes/gdb-mi.el
+++ b/lisp/progmodes/gdb-mi.el
@@ -1556,8 +1556,8 @@ OUTPUT-HANDLER-NAME handler uses customization of CUSTOM-DEFUN."
1556 (gdb-get-field breakpoint 'disp) "\t" 1556 (gdb-get-field breakpoint 'disp) "\t"
1557 (let ((flag (gdb-get-field breakpoint 'enabled))) 1557 (let ((flag (gdb-get-field breakpoint 'enabled)))
1558 (if (string-equal flag "y") 1558 (if (string-equal flag "y")
1559 (propertize "on" 'face font-lock-warning-face) 1559 (propertize "y" 'face font-lock-warning-face)
1560 (propertize "off" 'face font-lock-type-face))) "\t" 1560 (propertize "n" 'face font-lock-type-face))) "\t"
1561 (gdb-get-field breakpoint 'times) "\t" 1561 (gdb-get-field breakpoint 'times) "\t"
1562 (gdb-get-field breakpoint 'addr))) 1562 (gdb-get-field breakpoint 'addr)))
1563 (let ((at (gdb-get-field breakpoint 'at))) 1563 (let ((at (gdb-get-field breakpoint 'at)))
@@ -1567,14 +1567,16 @@ OUTPUT-HANDLER-NAME handler uses customization of CUSTOM-DEFUN."
1567 (concat " in " 1567 (concat " in "
1568 (propertize (gdb-get-field breakpoint 'func) 1568 (propertize (gdb-get-field breakpoint 'func)
1569 'face font-lock-function-name-face))) 1569 'face font-lock-function-name-face)))
1570 (gdb-insert-frame-location breakpoint))) 1570 (gdb-insert-frame-location breakpoint)
1571 (add-text-properties (line-beginning-position)
1572 (line-end-position)
1573 '(mouse-face highlight
1574 help-echo "mouse-2, RET: visit breakpoint"))))
1571 (at (insert (concat " " at))) 1575 (at (insert (concat " " at)))
1572 (t (insert (gdb-get-field breakpoint 'original-location))))) 1576 (t (insert (gdb-get-field breakpoint 'original-location)))))
1573 (add-text-properties (line-beginning-position) 1577 (add-text-properties (line-beginning-position)
1574 (line-end-position) 1578 (line-end-position)
1575 `(gdb-breakpoint ,breakpoint 1579 `(gdb-breakpoint ,breakpoint))
1576 mouse-face highlight
1577 help-echo "mouse-2, RET: visit breakpoint"))
1578 (newline)) 1580 (newline))
1579 (gdb-place-breakpoints))) 1581 (gdb-place-breakpoints)))
1580 1582