Re: PATCH: PR tui/2173: Arrow keys no longer works in breakpoint command list

Jan Kratochvil
2008-03-21T20:34:09Z

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