This is the mail archive of the gdb@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: [GDB 6.8] Problem using watchpoints with compound objects


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


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