Re: breakpoint for accessing memory location

Eli Zaretskii
2006-10-23T04:10:19Z

> Date: Sun, 22 Oct 2006 18:55:46 -0400
> From: Robert Dewar <dewar@adacore.com>
> CC: rodney.bates@wichita.edu, gdb@sourceware.org
>
> Eli Zaretskii wrote:
>
> > The general rule is that watching a constant expression is silly,
> > since its value never changes and thus the watchpoint will never
> > break. Thus, it's probably not what the user wanted, and a warning
> > would be a Good Thing, IMO.
>
> Right, but of course it is recursively undecidable whether an
> expression is constant, so you don't really mean what you say.

No, I did mean what I said. You asked about a principle, not about
the feasibility of its application. Or at least that's what I thought
you were asking.