aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasatake YAMATO2004-10-24 00:25:21 +0000
committerMasatake YAMATO2004-10-24 00:25:21 +0000
commit3988d9c612c7589da4c4d8562ef998aeafca1020 (patch)
treee6a621d8b2c152513de99f1ae0c6dd72596be3fc
parentf4733d22e6a661fa8510bd684c3d8907f51ea4b2 (diff)
downloademacs-3988d9c612c7589da4c4d8562ef998aeafca1020.tar.gz
emacs-3988d9c612c7589da4c4d8562ef998aeafca1020.zip
* progmodes/gdb-ui.el (gdb-assembler-font-lock-keywords): Handle
periods and underscores in a function name. Remove the address fontification.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/gdb-ui.el14
2 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b70c174cf76..0549967a0d8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12004-10-24 Masatake YAMATO <jet@gyve.org>
2
3 * progmodes/gdb-ui.el (gdb-assembler-font-lock-keywords): Handle
4 periods and underscores in a function name.
5 Remove the address fontification.
6
12004-10-24 Masatake YAMATO <jet@gyve.org> 72004-10-24 Masatake YAMATO <jet@gyve.org>
2 8
3 * progmodes/asm-mode.el (asm-font-lock-keywords): Use 9 * progmodes/asm-mode.el (asm-font-lock-keywords): Use
diff --git a/lisp/progmodes/gdb-ui.el b/lisp/progmodes/gdb-ui.el
index 1cd2a5c9c89..64f8808c7f1 100644
--- a/lisp/progmodes/gdb-ui.el
+++ b/lisp/progmodes/gdb-ui.el
@@ -177,7 +177,7 @@ detailed description of this mode.
177 177
178 (setq comint-input-sender 'gdb-send) 178 (setq comint-input-sender 'gdb-send)
179 ;; 179 ;;
180 ;; (re-)initialise 180 ;; (re-)initialize
181 (setq gdb-current-address "main") 181 (setq gdb-current-address "main")
182 (setq gdb-previous-address nil) 182 (setq gdb-previous-address nil)
183 (setq gdb-previous-frame nil) 183 (setq gdb-previous-frame nil)
@@ -1950,13 +1950,15 @@ BUFFER nil or omitted means use the current buffer."
1950 map)) 1950 map))
1951 1951
1952(defvar gdb-assembler-font-lock-keywords 1952(defvar gdb-assembler-font-lock-keywords
1953 '(("[^\$]0x[0-9a-f]+" . font-lock-constant-face) 1953 '(;; <__function.name+n>
1954 ("^\\(0x*[0-9a-f]+\\) ?\\(<\\(\\sw+\\)\\+[0-9]+>\\)?:[ \t]+\\(\\sw+\\)" 1954 ("<\\(\\(\\sw\\|[_.]\\)+\\)\\(\\+[0-9]+\\)?>"
1955 (1 font-lock-constant-face) 1955 (1 font-lock-function-name-face))
1956 (3 font-lock-function-name-face) 1956 ;; 0xNNNNNNNN <__function.name+n>: opcode
1957 ("^0x[0-9a-f]+ \\(<\\(\\(\\sw\\|[_.]\\)+\\)\\+[0-9]+>\\)?:[ \t]+\\(\\sw+\\)"
1957 (4 font-lock-keyword-face)) 1958 (4 font-lock-keyword-face))
1959 ;; %register(at least i386)
1958 ("%\\sw+" . font-lock-variable-name-face) 1960 ("%\\sw+" . font-lock-variable-name-face)
1959 ("^\\(Dump of assembler code for function\\) \\(.+\\):" 1961 ("^\\(Dump of assembler code for function\\) \\(.+\\):"
1960 (1 font-lock-comment-face) 1962 (1 font-lock-comment-face)
1961 (2 font-lock-function-name-face)) 1963 (2 font-lock-function-name-face))
1962 ("^\\(End of assembler dump\\.\\)" . font-lock-comment-face)) 1964 ("^\\(End of assembler dump\\.\\)" . font-lock-comment-face))