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] stepping over an infinite source line


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 (éå)


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