This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 2/4]: Handle SIGINT under Python by raising KeyboardInterrupt


Hi,

On Jul 30, 2012, at 3:48 PM, Khoo Yit Phang wrote:
> 
> It looks like this patch will work. I do need to make a change to my Python readline shim to call "while (gdb_do_one_event () >= 0)", otherwise the SIGINT will be processed twice: once by Python, and another time by GDB under gdb_readline_wrapper (since async_request_quit will be processed under gdb_do_one_event then, and immediate_quit is set).

I was wrong about this, I can't call gdb_do_one_event because it blocks. In which case, there's a problem of the signal being handled twice, which I explained in more detail in my other email.

Yit
July 30, 2012


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]