# HG changeset patch # User Dan Nicolaescu # Date 1183498256 0 # Node ID 28e125eb9a2ae8ab89588a73e3fa68597b853bbf # Parent 83437a5611b91f0765d44b2b28f992f2489ce50b (auto-mode-alist): Match more valid gdb init file names. diff -r 83437a5611b9 -r 28e125eb9a2a lisp/ChangeLog --- a/lisp/ChangeLog Mon Jul 02 05:46:19 2007 +0000 +++ b/lisp/ChangeLog Tue Jul 03 21:30:56 2007 +0000 @@ -1,3 +1,8 @@ +2007-07-03 Dan Nicolaescu + + * progmodes/gud.el (auto-mode-alist): Match more valid gdb init + file names. + 2007-07-02 Martin Rudalics * help-mode.el (help-make-xrefs): Skip spaces too when skipping tabs. diff -r 83437a5611b9 -r 28e125eb9a2a lisp/progmodes/gud.el --- a/lisp/progmodes/gud.el Mon Jul 02 05:46:19 2007 +0000 +++ b/lisp/progmodes/gud.el Tue Jul 03 21:30:56 2007 +0000 @@ -3193,8 +3193,12 @@ (goto-char (point-max))) t) +;; Besides .gdbinit, gdb documents other names to be usable for init +;; files, cross-debuggers can use something like +;; .PROCESSORNAME-gdbinit so that the host and target gdbinit files +;; don't interfere with each other. ;;;###autoload -(add-to-list 'auto-mode-alist '("/\\.gdbinit" . gdb-script-mode)) +(add-to-list 'auto-mode-alist '("/\\.[a-z0-9-]*gdbinit" . gdb-script-mode)) ;;;###autoload (define-derived-mode gdb-script-mode nil "GDB-Script"