[GDB 6.8] Problem using watchpoints with compound objects

Daniel Jacobowitz drow@false.org
Wed Mar 4 19:28:00 GMT 2009


On Wed, Mar 04, 2009 at 07:20:13PM +0000, Antony KING wrote:
> However my original query relating to arrays is still valid. If I
> perform the same test with "a" defined as an array (as in my original
> email) then the effect of coerce_array() in value_equal() remains; the
> watchpoint is reported by the H/W but value_equal() will always report
> TRUE (since it compares the address of the array and not its contents)
> and hence GDB erroneously ignores the watchpoint as unchanged. Therefore
> I still think the change to watchpoint_check() is still valid. If you
> concur I will submit a patch for this.

I think I agree, but honestly I'm too confused to be sure; it does not
help that you're working against GDB 6.8 and this code has changed in
HEAD.  I suggest posting the patch, but including a testcase so that
the change in behavior is realy obvious.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Gdb mailing list