From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10767 invoked by alias); 4 Jun 2004 08:52:47 -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 10758 invoked from network); 4 Jun 2004 08:52:46 -0000 Received: from unknown (HELO miranda.se.axis.com) (212.209.10.220) by sourceware.org with SMTP; 4 Jun 2004 08:52:46 -0000 Received: from axis.com (ironmadien.se.axis.com [10.84.130.1]) by miranda.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id i548qbdB009110; Fri, 4 Jun 2004 10:52:38 +0200 Message-ID: <40C03854.1070907@axis.com> Date: Fri, 04 Jun 2004 08:52: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: Michael Snyder CC: gdb-patches@sources.redhat.com Subject: Re: Defer register reading from remote target until needed? References: <40BF22E2.7030700@axis.com> <40BF6D09.7080909@redhat.com> In-Reply-To: <40BF6D09.7080909@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-06/txt/msg00066.txt.bz2 Michael Snyder wrote: > > It's supposed to work that way already. Either something's broken, or > some register other than the ones you named *is* needed. The 'g' pkt > should only go out if gdb needs the value of a register that it doesn't > already have. > > This can sometimes happen 'indirectly', eg. if you try to set a > register, gdb may try to read it first. > > Try setting a breakpoint in remote_fetch_registers, then go up > the stack and see what register gdb is trying to read. Ah; it's because we need the subroutine return pointer when unwinding the pc. Thanks. -- Orjan Friberg Axis Communications