Re: question about ARM watchpoints

Joel Brobecker <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
> So sounds like this line should be skipped on ARMv7-M:
> 
>   arm-tdep.c:  set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 1);
> 
> Could you try removing it?
> 
> But then I wonder why we never heard of this before.  Are there
> ARMv7-M's that behave differently?  And what about ARMv6-M ?

That's what I wanted to try too, and will do soon. As to why we never
heard of this before - the only affirmative answer would be from someone
better able to undertand the docs than me.  But here's a wild guess: the
fact that GDB stopped one instruction too late is invisible to the user
99% of the time. What triggered me seeing it was a change in code
generation which caused the update to be at the penultimate instruction
of a function. I wouldn't have seen it if the update was anywhere before
that.

-- 
Joel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.