Re: breakpoint for accessing memory location

Eli Zaretskii
2006-10-22T22:18:57Z

> Date: Sun, 22 Oct 2006 08:18:53 -0400
> From: Robert Dewar <dewar@adacore.com>
>
> And it would lead to surprising results, if you watch p-p and p is
> out of scope, it would be surprising if it did NOT lead to an error!

Strange, I'd actually expect GDB to tell me that "watch p-p" is an
invalid command. Something like

Warning: attempt to watch constant expression.

I guess we have very different notions of what is reasonable in this
context.