diff options
author | Masatake YAMATO <jet@gyve.org> | 2004-10-24 00:25:21 +0000 |
---|---|---|
committer | Masatake YAMATO <jet@gyve.org> | 2004-10-24 00:25:21 +0000 |
commit | 3988d9c612c7589da4c4d8562ef998aeafca1020 (patch) | |
tree | e6a621d8b2c152513de99f1ae0c6dd72596be3fc /lisp/progmodes/gdb-ui.el | |
parent | f4733d22e6a661fa8510bd684c3d8907f51ea4b2 (diff) | |
download | emacs-3988d9c612c7589da4c4d8562ef998aeafca1020.tar.gz emacs-3988d9c612c7589da4c4d8562ef998aeafca1020.tar.bz2 emacs-3988d9c612c7589da4c4d8562ef998aeafca1020.zip |
* progmodes/gdb-ui.el (gdb-assembler-font-lock-keywords): Handle
periods and underscores in a function name.
Remove the address fontification.
Diffstat (limited to 'lisp/progmodes/gdb-ui.el')
-rw-r--r-- | lisp/progmodes/gdb-ui.el | 14 |
1 files changed, 8 insertions, 6 deletions
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. (setq comint-input-sender 'gdb-send) ;; - ;; (re-)initialise + ;; (re-)initialize (setq gdb-current-address "main") (setq gdb-previous-address nil) (setq gdb-previous-frame nil) @@ -1950,13 +1950,15 @@ BUFFER nil or omitted means use the current buffer." map)) (defvar gdb-assembler-font-lock-keywords - '(("[^\$]0x[0-9a-f]+" . font-lock-constant-face) - ("^\\(0x*[0-9a-f]+\\) ?\\(<\\(\\sw+\\)\\+[0-9]+>\\)?:[ \t]+\\(\\sw+\\)" - (1 font-lock-constant-face) - (3 font-lock-function-name-face) + '(;; <__function.name+n> + ("<\\(\\(\\sw\\|[_.]\\)+\\)\\(\\+[0-9]+\\)?>" + (1 font-lock-function-name-face)) + ;; 0xNNNNNNNN <__function.name+n>: opcode + ("^0x[0-9a-f]+ \\(<\\(\\(\\sw\\|[_.]\\)+\\)\\+[0-9]+>\\)?:[ \t]+\\(\\sw+\\)" (4 font-lock-keyword-face)) + ;; %register(at least i386) ("%\\sw+" . font-lock-variable-name-face) - ("^\\(Dump of assembler code for function\\) \\(.+\\):" + ("^\\(Dump of assembler code for function\\) \\(.+\\):" (1 font-lock-comment-face) (2 font-lock-function-name-face)) ("^\\(End of assembler dump\\.\\)" . font-lock-comment-face)) |