This is the mail archive of the gdb@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]

GDB 6.6, remote, more threads


Hello,

The following behavior looks strange to me. Could this be a bug in GDB? Or 
maybe I simply miss something.

I have a program with two threads I set up to test my gdbServer. Each 
thread function has 3 lines of code and every line has a breakpoint.
I do successive 'c's at the Gdb prompt.

Here Gdb gets 'T0505...08:5b698303;..' corresponding to one breakpoint 
($Z0,383695b,1#b7).
So GdbServer tells Gdb that a breakpoint was hit, but Gdb ignores it and 
does a 'vCont;c' again.

This way the user misses a breakpoint.

Any idea?

Thanks and Regards, Roland


Breakpoint 4, p2 () at 
C:/Projects/testGdbServer/Logical/NewProgram1/p2.c:32
32              jc = lintegral (2,8, mycube);
(gdb) c
Continuing.
Sending packet: $vCont;s:5#27...Ack
Packet received: T0505:ac1b8903;04:a01b8903;08:d2668303;thread:5;
Sending packet: $Z0,383691b,1#b3...Ack
Packet received: OK
Sending packet: $Z0,383693b,1#b5...Ack
Packet received: OK
Sending packet: $Z0,383695b,1#b7...Ack
Packet received: OK
Sending packet: $Z0,38366cf,1#e6...Ack
Packet received: OK
Sending packet: $Z0,38366ef,1#e8...Ack
Packet received: OK
Sending packet: $Z0,383670f,1#b4...Ack
Packet received: OK
Sending packet: $vCont;c#a8...Ack
Packet received: T0505:9c408903;04:94408903;08:5b698303;thread:4f;
Sending packet: $g#67...Ack
Packet received: 
447b8f034aa382036e000000247b8f03944089039c40890390fd8903284389035b6983030202000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000
Sending packet: $vCont;c#a8...Ack
Packet received: T0505:ac1b8903;04:a41b8903;08:ef668303;thread:5;
Sending packet: $g#67...Ack
Packet received: 
e8e8ef030aba82035d020000c8e8ef03a41b8903ac1b890388fd8903381e8903ef6683030202000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000
Sending packet: $z0,383691b,1#d3...Ack
Packet received: OK
Sending packet: $z0,383693b,1#d5...Ack
Packet received: OK
Sending packet: $z0,383695b,1#d7...Ack
Packet received: OK
Sending packet: $z0,38366cf,1#06...Ack
Packet received: OK
Sending packet: $z0,38366ef,1#08...Ack
Packet received: OK
Sending packet: $z0,383670f,1#d4...Ack
Packet received: OK

Breakpoint 5, p2 () at 
C:/Projects/testGdbServer/Logical/NewProgram1/p2.c:33
33              kc = lintegral (4,6, mycube);
(gdb)


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