Re: [Cgdb-users] key bindings
Brought to you by:
bobbybrasko,
crouchingturbo
From: Bob R. <bob...@co...> - 2007-08-13 02:56:44
|
On Sat, Aug 11, 2007 at 11:36:25PM +0100, William Pursell wrote: > Bob Rossi wrote: > > On Tue, Aug 07, 2007 at 05:30:53PM -0400, Bob Rossi wrote: > >> On Tue, Aug 07, 2007 at 09:24:41PM +0100, William Pursell wrote: > >>> Bob Rossi wrote: > >>>> On Sun, Aug 05, 2007 at 08:19:13AM +0100, William Pursell wrote: > >>>>> Is there a workaround for this? > >>>> Try downloading and installing > >>>> http://brasko.net:81/bob/cgdb-20070807.tar.gz > >>>> > >>>> Then in your ~/.cgdb/cgdbrc do 'set cgdbmodekey=key'. Key can be any > >>>> normal key on the keyboard, or a keycode string. For example, <F1> or > >>>> <PageUp>. > >>>> > >>>> Make sure to give us feedback on if this is useful. If so, we'll > >>>> consider adding it for the next release. > >>> This works to remap the key, but <esc> is now (apparently) ignored > >>> and I can't get readline into command mode. > >> Oops, I think I see the problem and I've fixed it. I'm not able to get > >> into and out of command mode in readline, in cgdb. Try this version and > >> let me know. > >> > >> http://brasko.net:81/bob/cgdb-20070807.tar.gz > >> > >> The above is a different version of the code, even though it has the > >> same name. > > > > I've committed these changes allong with the documentation. You should > > be able to use CGDB with readline in vi mode now. > > Sorry for the delay in checking this. Although remapping > cgdbmodekey works in this version, there is something wrong. > The following key sequence causes cgdb to hang, and I'm having > to SIGKILL it: > > set args foo<esc>bc > > Many of the readline commands work as expected (I've > checked: xhjklAaIifFtTbwBW), but 'c' and 'd' are locking > it up; it looks like rl_callback_read_char() is never > returning. Aaaa, I see. That's to bad. I'll try to reproduce this behavior, but it seems that readline is probably not honoring the callback interface. I've had this happen before and hat to patch readline, which is why cgdb depends on a fairly recent version of readline. If this is true, I'll have to talk with the readline maintainer about fixing this problem. He's on vacation for another 2 weeks, afaik. If we get a fix, you'll have to build the modified readline with cgdb to verify that it works. If this is the issue, it'll probably be a few months before readline is releaesd, and cgdb works with an official version. In the long run though, it's probably worth it. Bob Rossi |