diff options
| author | Nick Roberts | 2006-07-28 12:11:09 +0000 |
|---|---|---|
| committer | Nick Roberts | 2006-07-28 12:11:09 +0000 |
| commit | a9502111b2e211e87594dcc68ae5d53a6951550b (patch) | |
| tree | 6719dddf17d75f9685c33b4d2348e3aef76d2197 /lisp | |
| parent | 210f78ee1eb3056f354cec5e830a44bdb04c7c22 (diff) | |
| download | emacs-a9502111b2e211e87594dcc68ae5d53a6951550b.tar.gz emacs-a9502111b2e211e87594dcc68ae5d53a6951550b.zip | |
(gdb-info-breakpoints-custom): Use different faces for enable character.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/gdb-ui.el | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el index dca6fa16df0..466ef70ff23 100644 --- a/lisp/progmodes/gdb-ui.el +++ b/lisp/progmodes/gdb-ui.el | |||
| @@ -1754,6 +1754,7 @@ static char *magick[] = { | |||
| 1754 | (gdb-remove-breakpoint-icons (point-min) (point-max))))) | 1754 | (gdb-remove-breakpoint-icons (point-min) (point-max))))) |
| 1755 | (with-current-buffer (gdb-get-buffer 'gdb-breakpoints-buffer) | 1755 | (with-current-buffer (gdb-get-buffer 'gdb-breakpoints-buffer) |
| 1756 | (save-excursion | 1756 | (save-excursion |
| 1757 | (let ((buffer-read-only nil)) | ||
| 1757 | (goto-char (point-min)) | 1758 | (goto-char (point-min)) |
| 1758 | (while (< (point) (- (point-max) 1)) | 1759 | (while (< (point) (- (point-max) 1)) |
| 1759 | (forward-line 1) | 1760 | (forward-line 1) |
| @@ -1762,14 +1763,19 @@ static char *magick[] = { | |||
| 1762 | (looking-at "\\([0-9]+\\)\\s-+\\S-+\\s-+\\S-+\\s-+\\(.\\)") | 1763 | (looking-at "\\([0-9]+\\)\\s-+\\S-+\\s-+\\S-+\\s-+\\(.\\)") |
| 1763 | (setq bptno (match-string 1)) | 1764 | (setq bptno (match-string 1)) |
| 1764 | (setq flag (char-after (match-beginning 2))) | 1765 | (setq flag (char-after (match-beginning 2))) |
| 1766 | (add-text-properties | ||
| 1767 | (match-beginning 2) (match-end 2) | ||
| 1768 | (if (eq flag ?y) | ||
| 1769 | '(face font-lock-warning-face) | ||
| 1770 | '(face font-lock-type-face))) | ||
| 1765 | (beginning-of-line) | 1771 | (beginning-of-line) |
| 1766 | (if (re-search-forward " in \\(.*\\) at\\s-+" nil t) | 1772 | (if (re-search-forward " in \\(.*\\) at\\s-+" nil t) |
| 1767 | (progn | 1773 | (progn |
| 1768 | (let ((buffer-read-only nil)) | 1774 | (add-text-properties |
| 1769 | (add-text-properties (match-beginning 1) (match-end 1) | 1775 | (match-beginning 1) (match-end 1) |
| 1770 | '(face font-lock-function-name-face))) | 1776 | '(face font-lock-function-name-face)) |
| 1771 | (looking-at "\\(\\S-+\\):\\([0-9]+\\)") | 1777 | (looking-at "\\(\\S-+\\):\\([0-9]+\\)") |
| 1772 | (let ((line (match-string 2)) (buffer-read-only nil) | 1778 | (let ((line (match-string 2)) |
| 1773 | (file (match-string 1))) | 1779 | (file (match-string 1))) |
| 1774 | (add-text-properties (line-beginning-position) | 1780 | (add-text-properties (line-beginning-position) |
| 1775 | (line-end-position) | 1781 | (line-end-position) |
| @@ -1799,7 +1805,7 @@ static char *magick[] = { | |||
| 1799 | (list (concat gdb-server-prefix "info source\n") | 1805 | (list (concat gdb-server-prefix "info source\n") |
| 1800 | `(lambda () (gdb-get-location | 1806 | `(lambda () (gdb-get-location |
| 1801 | ,bptno ,line ,flag)))))))))) | 1807 | ,bptno ,line ,flag)))))))))) |
| 1802 | (end-of-line))))) | 1808 | (end-of-line)))))) |
| 1803 | (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom))) | 1809 | (if (gdb-get-buffer 'gdb-assembler-buffer) (gdb-assembler-custom))) |
| 1804 | 1810 | ||
| 1805 | (defun gdb-mouse-set-clear-breakpoint (event) | 1811 | (defun gdb-mouse-set-clear-breakpoint (event) |