RE: [RFA] Clarify infrun variable naming.

Pierre Muller
2007-11-23T16:14:11Z

> Yes. What I mean is that there are two situations now:
>
> 1. When we step over breakpoint, we disable everything, including
> watchpoints.
> 2. When we hit watchpoint, and the PC is at the instruction itself, we
> disable
> all breakpoints and watchpoints when stepping.
>
> (2) might not be a problem now, but if we wish to interact with one
> thread,
> while others are running, it might become a problem -- other threads
> might miss unrelated breakpoints and watchpoints. So, we need to:
>
> - Remove breakpoints at current PC
> - Remove watchpoint a the address being accessed
> - Single step
>
> I suspect you was more interested in (1), but that's basically two
> sides
> of the coin.

Yes, but this scheme should indeed also work to resolve the
watchpoint miss of gdb/38.
About Daniel's answer, suggesting to use thread specific
watchpoints, I don't know if thread specific
watchpoints are available on all archs... Which would mean
that both schemes need to be implemented.

Pierre