This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: intelligent history and memory for gdb
- From: Jon Ringle <jon dot ringle at comdial dot com>
- To: gdb at sources dot redhat dot com
- Date: Wed, 20 Jul 2005 17:57:08 -0400
- Subject: Re: intelligent history and memory for gdb
- References: <1121795467.3476.ezmlm@sources.redhat.com><20050720212440.GA20444@mdssdev05.comp.pge.com>
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