This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
mi-watch.exp fail, pls help
- From: ligang at sunnorth dot com dot cn
- To: gdb at sourceware dot org
- Date: Thu, 17 Jan 2008 11:57:33 +0800
- Subject: mi-watch.exp fail, pls help
hello all,
When i run gdb testsuite, mi-watch.exp fail.
See the following diassembly:
34: C = A + B;
116: 1742 lw! r7, [r2,8]
118: 1641 lw! r6, [r2,4]
11a: 80c7 1810 add r6, r7, r6
11e: 2640 sw! r6, [r2,0]
35: return 0;
120: 64c0 ldiu! r6, 0
36:}
122: 4086 mv! r4, r6
124: 5c8c addi! r2, 12
126: 4002 mv! r0, r2
128: 0042 pop! r2
12a: 0083 br! r3
After setting watchpoint to C, it will be hit at 0x11e, and PC will be
0x120 at the time,
but GDB will execute a single step, after that, PC will be 0x122, so
source line will be 36 but not
expected 35.
Anyone can tell me how to resolve this problem?
Thanks.