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


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


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