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

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

configuring gdb (gud) to start on a given file


From: Nick Roberts
Subject: configuring gdb (gud) to start on a given file
Date: Wed, 30 Mar 2005 10:59:37 +1200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020826

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?


I don't think you can do this in 21.2 but in the "soon-to-be-released"
Emacs 22 you can set or customise gud-gdb-command-name eg in your .emacs
put:

(setq gud-gdb-command-name "gdb --annotate=3 /home/nick/myprog")

However this is not really how it is generally used because one day
you might want to debug another program!


Nick







reply via email to

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