intelligent history and memory for gdb

Jon Ringle jon.ringle@comdial.com
Wed Jul 20 21:57:00 GMT 2005


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



More information about the Gdb mailing list