From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16724 invoked by alias); 28 Nov 2007 20:22:30 -0000 Received: (qmail 16703 invoked by uid 22791); 28 Nov 2007 20:22:28 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Nov 2007 20:22:24 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id C2CDA3BE0D; Wed, 28 Nov 2007 12:22:22 -0800 (PST) Subject: Re: help me reduce typing when running gdb From: Michael Snyder To: Chris Stankevitz Cc: gdb@sourceware.org In-Reply-To: <474DC4C9.7000806@toyon.com> References: <474DC4C9.7000806@toyon.com> Content-Type: text/plain Date: Wed, 28 Nov 2007 20:22:00 -0000 Message-Id: <1196280581.2501.102.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-4.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-11/txt/msg00260.txt.bz2 On Wed, 2007-11-28 at 11:43 -0800, Chris Stankevitz wrote: > Hi, I often perform these steps: > > 1. bjam > 2. gdb ./bin/debug/prog > 3. r very long list of parameters that I hate typing > 4. [lots of debugger commands like c, n, s, break, etc] > 5. up arrow many times to get back to the run command w/parms > 6. q > 7. vi source.cpp > 8. goto 1 > > Can anyone recommend a way to streamline this process? Particularly > Step 3 and Step 5. Sure. 1. cat > .gdbinit define myrun run end ^D 2. gdb ./bin/debug/prog 3. myrun 4. [lots of debugger commands like c, n, s, break, etc] 5. myrun