From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32300 invoked by alias); 29 Mar 2004 14:44:50 -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 32222 invoked from network); 29 Mar 2004 14:44:40 -0000 Received: from unknown (HELO miranda.se.axis.com) (193.13.178.2) by sources.redhat.com with SMTP; 29 Mar 2004 14:44:40 -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 i2TEi7Um008773; Mon, 29 Mar 2004 16:44:07 +0200 Message-ID: <40683636.4060906@axis.com> Date: Mon, 29 Mar 2004 14:44: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: Daniel Jacobowitz CC: gdb-patches@sources.redhat.com Subject: Re: Function argument no longer in register References: <406830DF.10109@axis.com> <20040329142536.GA14990@nevyn.them.org> In-Reply-To: <20040329142536.GA14990@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00718.txt.bz2 Daniel Jacobowitz wrote: >> >>I don't know what kind of problem I'm looking at here. Could it be that >>the debug information is wrong? I'm guessing GDB somehow fails to >>realize that the function argument is out of scope at this point. > > > Nothing's wrong - eventually, versions of GCC with proper location list > will tell GDB that the variable is out of scope, but no released > version does that. I think 3.5 snapshots will. Ah, ok. Thanks. The setup is a remote stub debugging a Linux kernel, and the first page (8k for CRIS) is read/write-protected. So, I guess I need to filter out these bogus reads in the stub to prevent the kernel from oopsing. -- Orjan Friberg Axis Communications