help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: configuring gdb (gud) to start on a given file


From: Kevin Rodgers
Subject: Re: configuring gdb (gud) to start on a given file
Date: Tue, 29 Mar 2005 15:16:26 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]