This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: mi-watch.exp fail, pls help
- From: ligang at sunnorth dot com dot cn
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb at sourceware dot org
- Date: Fri, 18 Jan 2008 12:25:43 +0800
- Subject: Re: mi-watch.exp fail, pls help
Daniel Jacobowitz <drow@false.org> wrote on 2008-01-17 22:44:10:
> On Thu, Jan 17, 2008 at 11:57:33AM +0800, ligang@sunnorth.com.cn wrote:
> > 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?
>
> Check your target configuration. GDB thinks you have non-steppable
> watchpoints, but you actually have continuable watchpoints.
After a watchpoint trap in my target, the PC points to the instruction
after the one that caused the trap.
But after stepping over the traped instruction(example store), my target
increases PC to the next instruction, so,
the source line will not be correct. It occurs at whatever
HAVE_NONSTEPPABLE_WATCHPOINT or HAVE_CONTINUABLE_WATCHPOINT.
Dose it mean that my target can not match the action of GDB?
> Daniel Jacobowitz
> CodeSourcery