This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]