From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: configuring gdb (gud) to start on a given file Date: Wed, 30 Mar 2005 10:59:37 +1200 Message-ID: <4249DDD9.7090406@snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112135057 27219 80.91.229.2 (29 Mar 2005 22:24:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Mar 2005 22:24:17 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 30 00:24:14 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DGP19-0005vb-RB for geh-help-gnu-emacs@m.gmane.org; Wed, 30 Mar 2005 00:17:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGPHD-0003Cu-P6 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Mar 2005 17:33:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DGPGC-0002wU-IC for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 17:32:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DGPGA-0002vg-F0 for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 17:32:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DGPCQ-0001zs-H2 for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 17:28:38 -0500 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DGOkC-0000nA-6F for help-gnu-emacs@gnu.org; Tue, 29 Mar 2005 16:59:28 -0500 Original-Received: from snap.net.nz (p131-tnt1.snap.net.nz [202.124.110.131]) by viper.snap.net.nz (Postfix) with ESMTP id 9767B4A9B80; Wed, 30 Mar 2005 09:59:26 +1200 (NZST) User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en Original-To: hitt@eskimo.com 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:25282 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25282 > 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