This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: intelligent history and memory for gdb


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]