This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Cc: Nick Roberts <nickrob at snap dot net dot nz>, Daniel Jacobowitz <drow at false dot org>
- Date: Fri, 21 Mar 2008 21:33:11 +0100
- Subject: Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list
- References: <18019.18081.448928.93993@kahikatea.snap.net.nz> <20070604010633.GA927@caradoc.them.org> <20070626131336.GA8960@host0.dyn.jankratochvil.net>
Reply to:
http://sourceware.org/ml/gdb-patches/2007-06/msg00458.html
On Tue, 26 Jun 2007 15:13:37 +0200, Jan Kratochvil wrote:
...
> (2) Provide a new documented way to abort readline() from a signal handler.
> Provided rl_readline_unwind() needed to be called right before longjmp().
> Proposed, patch attached.
> + Fully crossplatform, backward compatible.
> + Not affecting most of the apps as they do not longjmp() out of readline().
> - New libreadline API function.
Upon a recent discussion with the readline maintainer Chet Ramey I was told the
support for this method in fact exists in readline:
On Fri, 21 Mar 2008 20:01:51 +0100, Chet Ramey wrote:
> I'm looking at the rl_unwind_protect thing a little more closely, and I'm
> wondering why you didn't use rl_save_state and rl_restore_state
[snip]
These functions are just not in the info document.
They could be used to implement the GDB part of the patch
http://sourceware.org/ml/gdb-patches/2007-06/txt00005.txt
but it needs to undo the current async-readline patch from Daniel Jacobowitz
first.
It would keep there the original synchronous readline() call being fully
backward compatible.
Regards,
Jan