From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 694 invoked by alias); 20 Jul 2005 21:57:55 -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 668 invoked by uid 22791); 20 Jul 2005 21:57:50 -0000 Received: from vms048pub.verizon.net (HELO vms048pub.verizon.net) (206.46.252.48) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 20 Jul 2005 21:57:50 +0000 Received: from [10.74.64.200] ([12.153.69.6]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IJY008ZK50AWDI1@vms048.mailsrvcs.net> for gdb@sources.redhat.com; Wed, 20 Jul 2005 16:57:46 -0500 (CDT) Date: Wed, 20 Jul 2005 21:57:00 -0000 From: Jon Ringle Subject: Re: intelligent history and memory for gdb In-reply-to: <20050720212440.GA20444@mdssdev05.comp.pge.com> To: gdb@sources.redhat.com Message-id: <200507201757.08514.jon.ringle@comdial.com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Content-disposition: inline References: <1121795467.3476.ezmlm@sources.redhat.com> <20050720212440.GA20444@mdssdev05.comp.pge.com> User-Agent: KMail/1.8.1 X-SW-Source: 2005-07/txt/msg00215.txt.bz2 On Wednesday 20 July 2005 05:24 pm, Ed Peschko wrote: > > On Monday 18 July 2005 02:29 pm, Ed Peschko wrote: > > > in my .tcshrc, and was wondering if gdb has an equivalent. This allows > > > me to type: > > > > > > mak > > > > > > then up arrow, to see all the list of commands that I've typed in my > > > history that start with 'mak', instead of just forgetting that I've > > > typed 'mak' and going back to the last typed command (like gdb does by > > > default). > > > > ctrl-r works for me from the (gdb) prompt to do a reverse-i-search. > > Just curious, but how do you map this to up arrow? What's the equivalent > for forward-i-search? I believe that this functionality is coming from readline. The bash man page has a good description of what's available. I have no idea how you remap the keys though. Ctrl-S will go in the forward direction. Jon