Dan Hitt wrote: > When i start gdb the first time in an emacs session, it prompts > Run gdb (like this): gdb > > After running it once, it remembers what the previous executable. > > How can i get the gdb (gud) mode to either remember between > emacs sessions, or set a default executable and/or gdb command > in my .emacs file?
Try this:
(setq gud-gdb-history '("gdb /path/to/default/executable"))
> I'm running 21.2.1, as distributed in Mac OSX, 10.3.2. > > Thanks in advance for any info, including pointers to info > pages or man pages or FAQs.
`C-h f gdb RET', then click on the `gud' library; you'll see that it calls (gud-query-cmdline 'gdb) to read its arguments, and that the default is the first element of the (gud-symbol 'history nil 'gdb) symbol's value.
-- Kevin Rodgers _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs