This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] stepping over an infinite source line
- From: Yao Qi <yao at codesourcery dot com>
- To: "Abid, Hafiz" <Hafiz_Abid at mentor dot com>
- Cc: Pedro Alves <palves at redhat dot com>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 29 May 2013 11:13:21 +0800
- Subject: Re: [patch] stepping over an infinite source line
- References: <EB3B29AD43CA924DA27099BC85192376E06098EE at EU-MBX-03 dot mgc dot mentorg dot com>
On 05/25/2013 12:42 AM, Abid, Hafiz wrote:
This patch solves a problem of source stepping over a potentially infinite single-line loop. In such cases, there is a chance of user unable to gain control after stepping as ctrl-c is ignored by the stub. Following session gives an example.
Note that the problem this patch tries to fix happens when range
stepping is turned off. When range stepping is on, single ctrl-c works:
(gdb) n
Sending packet: $qTStatus#49...Packet received:
T0;tnotrun:0;tframes:0;tcreated:0;tfree:500000;tsize:500000;circular:0;disconn:0;starttime:000000000;stoptime:000000000;username::;notes::
Sending packet: $Z0,4ce5b6b0,1#6e...Packet received: OK
Sending packet: $Z0,4ce9f7fe,1#b0...Packet received: OK
Sending packet: $Z0,4cf7f471,1#49...Packet received: OK
Sending packet:
$vCont;r8048397,80483a1:p311b.311b;c#57...^Casync_remote_interrupt
called remote_stop called
Packet received:
T0205:a8efffbf;04:a8efffbf;08:9d830408;thread:p311b.311b;core:1;
Program received signal SIGINT, Interrupt.
Sending packet: $z0,4ce5b6b0,1#8e...Packet received: OK
Sending packet: $z0,4ce9f7fe,1#d0...Packet received: OK
Sending packet: $z0,4cf7f471,1#69...Packet received: OK
Sending packet: $mbfffef80,40#c4...Packet received:
b0830408e082040800000000ad32ea4c84d3014dc4cfe64cb9830408f4cf014db08304080000000000000000b396e84c0100000044f0ffbf4cf0ffbfc4cfe64c
0x0804839d in main () at 1.c:3
3 while (d == 0);
--
Yao (éå)