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: Dan Hitt
Subject: Re: configuring gdb (gud) to start on a given file
Date: 30 Mar 2005 09:50:15 GMT

Hi Kevin and Nick,

Thanks for the advice on how to proceed.  Kevin's method works,
and no doubt Nick's will in emacs 22.  (And i do run gdb on
lots of programs, but i've had to do it a great deal on this
program whose path is very long.)

dan


In article <address@hidden>,
Kevin Rodgers  <address@hidden> wrote:
> > 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?

>(setq gud-gdb-history '("gdb /path/to/default/executable"))
>

>`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.


reply via email to

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