From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7881 invoked by alias); 16 Jul 2004 21:40:57 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7871 invoked from network); 16 Jul 2004 21:40:56 -0000 Received: from unknown (HELO intranet.tidalnetworks.net) (67.114.153.34) by sourceware.org with SMTP; 16 Jul 2004 21:40:56 -0000 Received: from xinanpc (dynamic-02 [172.16.128.2]) (authenticated bits=0) by intranet.tidalnetworks.net (8.12.8/8.12.8) with ESMTP id i6GLfeAB030878 for ; Fri, 16 Jul 2004 14:41:40 -0700 From: "Xinan Tang" To: Subject: "which function is called when updating a register?" Date: Fri, 16 Jul 2004 21:46:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: X-SW-Source: 2004-07/txt/msg00218.txt.bz2 Hi I set breakpoints on both: -- gdbsim_fetch_register and -- gdbsim_store_register when single stepping the instruction execution, I noticed that gdbsim_fetech_register was called but gdbsim_store_register. Which function is actually called to update a register content within gdb using a built-in simulator? Thanks --Xinan __________________________________________________ "Xinan Tang" writes: > > > target sim Then the code in gdb/remote-sim.c would be a good thing to look at. In particular, are the right values coming through gdbsim_fetch_register and gdbsim_store_register?