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]

Re: mi-watch.exp fail, pls help


On Fri, Jan 18, 2008 at 12:25:43PM +0800, ligang@sunnorth.com.cn wrote:
> 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.

If you have continuable watchpoints, GDB should not step after
hitting a watchpoint.  The store has already happened when the
watchpoint triggers, right?

-- 
Daniel Jacobowitz
CodeSourcery


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