Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Antony KING <antony.king@st.com>
Cc: gdb@sourceware.org
Subject: Re: [GDB 6.8] Problem using watchpoints with compound objects
Date: Wed, 04 Mar 2009 19:28:00 -0000	[thread overview]
Message-ID: <20090304192826.GB21091@caradoc.them.org> (raw)
In-Reply-To: <49AED46D.7010701@st.com>

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


      reply	other threads:[~2009-03-04 19:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 17:39 Antony KING
2009-03-03 20:33 ` Daniel Jacobowitz
2009-03-03 21:18   ` Antony KING
2009-03-03 21:46     ` Daniel Jacobowitz
2009-03-04 19:20       ` Antony KING
2009-03-04 19:28         ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090304192826.GB21091@caradoc.them.org \
    --to=drow@false.org \
    --cc=antony.king@st.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox