From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: hitt@eskimo.com (Dan Hitt) Newsgroups: gmane.emacs.help Subject: Re: configuring gdb (gud) to start on a given file Date: 30 Mar 2005 09:50:15 GMT Organization: Eskimo North http://www.eskimo.com/ (800) 246-6874 Message-ID: References: <3au2dtF62lgmdU1@individual.net> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1112177466 31847 80.91.229.2 (30 Mar 2005 10:11:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2005 10:11:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 30 12:11:03 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGa9W-0006Cl-Tv for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 12:10:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGaQ0-0002bL-3V for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 05:27:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.uchicago.edu!news.cc.uic.edu!news-out.newsfeeds.com!news.eskimo.com!eskimo.com!hitt Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: eskimo.com Original-X-Trace: eskinews.eskimo.com 1112176215 22675 204.122.16.13 (30 Mar 2005 09:50:15 GMT) Original-X-Complaints-To: abuse@eskimo.com Original-NNTP-Posting-Date: 30 Mar 2005 09:50:15 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:129740 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25293 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25293 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 <3au2dtF62lgmdU1@individual.net>, Kevin Rodgers 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.