From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16205 invoked by alias); 19 Apr 2004 14:13:59 -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 16189 invoked from network); 19 Apr 2004 14:13:57 -0000 Received: from unknown (HELO miranda.se.axis.com) (193.13.178.2) by sources.redhat.com with SMTP; 19 Apr 2004 14:13:57 -0000 Received: from axis.com (ironmaiden.se.axis.com [10.13.8.120]) by miranda.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id i3JEDmUm001396; Mon, 19 Apr 2004 16:13:48 +0200 Message-ID: <4083DE9C.7000208@axis.com> Date: Mon, 19 Apr 2004 14:13:00 -0000 From: Orjan Friberg Organization: Axis Communications User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: Andrew Cagney CC: gdb-patches@sources.redhat.com Subject: Re: Multiplexed registers and invalidating the register cache References: <407D242B.109@axis.com> <20040414144607.GA5700@nevyn.them.org> <407E67EA.80701@axis.com> <407E70FD.7060709@axis.com> <407EAA4B.7000500@gnu.org> <407FD693.2080804@axis.com> <408030DB.3080708@gnu.org> In-Reply-To: <408030DB.3080708@gnu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-04/txt/msg00424.txt.bz2 Andrew Cagney wrote: > > - the frame cache is built on-demand, hence the absence of any explict > rebuild call (one characteristic of a frame ID is that it survives frame > cache flushes) In other words, I shouldn't expect to see a whole lot of communication with the remote target simply because I flush the frame cache. > - there shouldn't be separate register and frame flush calls, combining > the two into a single observer call is a thing-to-do-today Ok, let's see if I understand this correctly. Sorry if I'm asking what is (or should be) obvious (I only see observer.exp using this code as of now, so it's not clear to me how this is supposed to be used within GDB). A new event needs to be defined (user_changed_registers(?), taking the register number as an argument). This will give us attach/detach/notify functions related to that event. So, someone needs to attach a callback: is this something that should be done in target-specific files? If so, should targets provide their own callback implementation (which flushes the register and frame cache when deemed appropriate), or should there be a predefined function that the target-specific file simply references when attaching the callback? In addition, someone needs to notify that the event has happened, but I assume these notifications should be inserted at the same places that register_changed_hook is called for GUI purposes. Anything I missed or misunderstood? -- Orjan Friberg Axis Communications