From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11000 invoked by alias); 19 Feb 2003 22:07:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10988 invoked from network); 19 Feb 2003 22:07:01 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by 172.16.49.205 with SMTP; 19 Feb 2003 22:07:01 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18leFx-0007Oy-00 for ; Wed, 19 Feb 2003 18:08:06 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18lcMl-0004Kt-00 for ; Wed, 19 Feb 2003 17:06:59 -0500 Date: Wed, 19 Feb 2003 22:07:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: automatic commands...? Message-ID: <20030219220659.GA16625@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <200302191540.23945.cjb@cs.utexas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302191540.23945.cjb@cs.utexas.edu> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-02/txt/msg00380.txt.bz2 On Wed, Feb 19, 2003 at 03:40:23PM -0600, christopher j bottaro wrote: > hello, > i want gdb to automatically execute some commands on startup. for instance, > i want to run the command 'gdb myprog 12345' and immediately upon attaching, i > want it to execute 'set myvar=blah; continue'. is this possible and if so, > how? Put it in a .gdbinit in the current directory, or use -x. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer