This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix PR cli/15603
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 17 Jun 2013 08:29:07 +0200
- Subject: Re: [PATCH] Fix PR cli/15603
- References: <1371224682-19919-1-git-send-email-tromey at redhat dot com>
On Fri, 14 Jun 2013 17:44:42 +0200, Tom Tromey wrote:
> This fixes PR cli/15603.
Testcase in the following patch works if the former patch is reverted but it
does not work with this fix:
[patch] Fix CTRL-C for remote.c (PR remote/15297)
http://sourceware.org/ml/gdb-patches/2013-06/msg00363.html
The correct behavior is to stop stepping when GDB sees SIGINT:
infrun: target_wait (-1, status) =^M
infrun: 13777 [Thread 13777],^M
infrun: status->kind = stopped, signal = SIGINT^M
infrun: infwait_normal_state^M
infrun: TARGET_WAITKIND_STOPPED^M
infrun: stop_pc = 0x4005de^M
infrun: random signal 2^M
^M
Program received signal SIGINT, Interrupt.^M
but with your patch I can see GDB still ignores received SIGINT:
infrun: target_wait (-1, status) =^M
infrun: 12237 [Thread 12237],^M
infrun: status->kind = stopped, signal = SIGINT^M
infrun: infwait_normal_state^M
infrun: TARGET_WAITKIND_STOPPED^M
infrun: stop_pc = 0x4005de^M
infrun: stepping inside range [0x4005de-0x4005e0]^M
Thanks,
Jan