[PATCH] Forbid watchpoint on a constant value
Joel Brobecker
brobecker@adacore.com
Thu May 20 23:23:00 GMT 2010
Hi Sergio,
> Joel mentioned this patch yesterday, so here it is. This patch forbids
> the user to create a watchpoint on a constant value. The idea is pretty
> trivial:
>
> (gdb) watch 5
> Cannot watch constant value 5.
Without looking at the specifics of the patch for now, I am wondering
what other people think of the idea itself. For myself, I can see how
a warning might be useful, but forbidding it might be viewed as
a little excessive, particularly if there is a bug in GDB (or in
the debugging info!!!) that makes it think it's constant when in fact
it's not.
--
Joel
More information about the Gdb-patches
mailing list