From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30062 invoked by alias); 7 Oct 2002 14:26:04 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 30053 invoked from network); 7 Oct 2002 14:26:02 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 7 Oct 2002 14:26:02 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id QAA11351; Mon, 7 Oct 2002 16:26:17 +0200 (IST) Date: Mon, 07 Oct 2002 07:26:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Klee Dienes cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Compare contents when evaluating an array watchpoint In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-10/txt/msg00171.txt.bz2 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?