summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-09-21 11:49:31 +0300
committerEli Zaretskii <eliz@gnu.org>2013-09-21 11:49:31 +0300
commit75d83e22076c3bb46e81b26c4c4b09bbb39a6ce6 (patch)
tree3d78bbe8f6561fe0ecdce7b227621d87149f41f2 /lisp/files.el
parentf6bb09828c0457ece76a383e106e42b7efa1cdcc (diff)
downloademacs-75d83e22076c3bb46e81b26c4c4b09bbb39a6ce6.tar.gz
Recognize OBJFILE-gdb.gdb GDB script files.
lisp/files.el (auto-mode-alist): Support OBJFILE-gdb.gdb script files recognized by GDB 7.5 and later.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el
index ca55c646699..1a268200289 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2269,6 +2269,10 @@ since only a single case-insensitive search through the alist is made."
;; .PROCESSORNAME-gdbinit so that the host and target gdbinit files
;; don't interfere with each other.
("/\\.[a-z0-9-]*gdbinit" . gdb-script-mode)
+ ;; GDB 7.5 introduced OBJFILE-gdb.gdb script files; e.g. a file
+ ;; named 'emacs-gdb.gdb', if it exists, will be automatically
+ ;; loaded when GDB reads an objfile called 'emacs'.
+ ("-gdb\\.gdb" . gdb-script-mode)
("[cC]hange\\.?[lL]og?\\'" . change-log-mode)
("[cC]hange[lL]og[-.][0-9]+\\'" . change-log-mode)
("\\$CHANGE_LOG\\$\\.TXT" . change-log-mode)