[PATCH] Forbid watchpoint on a constant value

Tom Tromey tromey@redhat.com
Fri Jun 4 16:49:00 GMT 2010


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> The former comment was vague enough I agreed with it.  But the new one is
Jan> explicit enough to be unfortunately IMO incorrect.

Jan>   Return non-zero if EXP is verified as constant.  Returned zero
Jan>   means EXP is variable.  Also the constant detection may fail for
Jan>   some constant expressions and in such case still falsely return
Jan>   zero.

Jan> OK this way?

Sure.

Tom



More information about the Gdb-patches mailing list