From: Eli Zaretskii <eliz@is.elta.co.il>
To: Klee Dienes <klee@apple.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] Compare contents when evaluating an array watchpoint
Date: Mon, 07 Oct 2002 07:26:00 -0000 [thread overview]
Message-ID: <Pine.SUN.3.91.1021007162044.11283A@is> (raw)
In-Reply-To: <C66935B8-D9BB-11D6-9563-00039396EEB8@apple.com>
On Mon, 7 Oct 2002, Klee Dienes wrote:
> My patch doesn't change the behavior
> of the trigger phase at all --- this phase has always set the trigger
> to watch the entire contents of the array.
IIRC, that's not true: what you call ``the trigger phase'' was watching
the address of the array, not its contents. To watch the contents, you
needed to watch specific array elements.
In other words, "watch my_array" would break when the pointer to
the first element of my_array[] changed to point to a different memory
location. If you want to watch array contents, you need to say
"watch my_array[0]", "watch my_array[1]", etc.
Of course, it's been a while since I looked at that code, so I might be
mistaken. If so, could you please tell where's the code in the current
CVS sources which is watching the entire contents of the array?
next prev parent reply other threads:[~2002-10-07 14:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-06 2:16 Klee Dienes
2002-10-06 22:53 ` Eli Zaretskii
2002-10-06 23:12 ` Klee Dienes
2002-10-07 7:26 ` Eli Zaretskii [this message]
2002-10-07 11:50 ` Klee Dienes
2002-10-09 12:42 ` Eli Zaretskii
2002-10-21 17:44 ` Andrew Cagney
2002-11-04 18:27 ` [RFA] " Klee Dienes
2002-11-18 9:52 ` [PATCH] " Jim Blandy
2003-01-08 0:46 ` Andrew Cagney
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=Pine.SUN.3.91.1021007162044.11283A@is \
--to=eliz@is.elta.co.il \
--cc=gdb-patches@sources.redhat.com \
--cc=klee@apple.com \
/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