On 1/6/23 10:07 AM, Andrew Burgess wrote:
Hi,
While working on GDB, which uses the callback API, I've run into some
issues relating to reverse isearch and signal handling.
At the end of this email is a small example program that uses the
callback API. This is a modified version of the example program that
is included in the readline manual.
The issue I have relies on a SIGINT arriving at just the wrong time.
To reproduce this the test program uses rl_getc_function to setup a
wrapper function (my_getc) that calls rl_getc. After a couple of
times calling my_getc, a SIGINT is sent to the process using kill().
Two questions: what does gdb do when it gets the SIGINT? Readline sends it
back to the calling application. I assume it just sets a flag? And does
gdb set rl_signal_event_hook?
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/