From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23594 invoked by alias); 3 Nov 2006 22:09:17 -0000 Received: (qmail 23585 invoked by uid 22791); 3 Nov 2006 22:09:17 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 03 Nov 2006 22:09:13 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Gg7Dq-0004rQ-NS; Fri, 03 Nov 2006 17:09:10 -0500 Date: Fri, 03 Nov 2006 22:09:00 -0000 From: Daniel Jacobowitz To: Peng Yu Cc: gdb@sourceware.org Subject: Re: How to automatically execute some commands when gdb starts Message-ID: <20061103220910.GA18619@nevyn.them.org> Mail-Followup-To: Peng Yu , gdb@sourceware.org References: <366c6f340611031358i7ba844e2t3efd72bd233cc1fa@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <366c6f340611031358i7ba844e2t3efd72bd233cc1fa@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00014.txt.bz2 On Fri, Nov 03, 2006 at 03:58:39PM -0600, Peng Yu wrote: > Hi, > > Every time I start gdb, I'll use command "b main". I don't want to > type it every time. Is there anyway to set up gdb by default it > execute that command every time gdb starts? Please, take a look at the manual. If this is not clear from the manual, tell us where in the manual you looked. Under "Invocation" -> "Invoking GDB" -> "Startup" is a description of the init file. Searching for "start" in the index will send you there. -- Daniel Jacobowitz CodeSourcery