This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Forbid watchpoint on a constant value
> From: Sergio Durigan Junior <sergiodj@redhat.com>
> Date: Thu, 20 May 2010 20:54:50 -0300
> Cc: gdb-patches@sourceware.org, Jan Kratochvil <jan.kratochvil@redhat.com>
>
> FWIW, I actually was thinking a little more about the subject, and I agree
> with your suggestion. GDB may not forbid the user to do what he wants (even
> if that appears to be totally non-sense). I think a warning message, in this
> case, is the best option indeed.
How about asking for confirmation
Watch the constant value "5" (y or n)?