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] Fix PR cli/15603


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


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