From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16801 invoked by alias); 16 Apr 2002 12:56:05 -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 16755 invoked from network); 16 Apr 2002 12:56:02 -0000 Received: from unknown (HELO www.dberlin.org) (151.204.248.236) by sources.redhat.com with SMTP; 16 Apr 2002 12:56:02 -0000 Received: by www.dberlin.org (Postfix, from userid 501) id 57E011049F69; Tue, 16 Apr 2002 08:56:00 -0400 (EDT) Subject: Re: Lifetime of local variables From: Daniel Berlin To: Martin Baulig Cc: gdb@sources.redhat.com In-Reply-To: <86u1qghdp5.fsf@einstein.home-of-linux.org> References: <86u1qghdp5.fsf@einstein.home-of-linux.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 16 Apr 2002 05:56:00 -0000 Message-Id: <1018961760.14863.3.camel@dberlin.org> Mime-Version: 1.0 X-SW-Source: 2002-04/txt/msg00263.txt.bz2 On Fri, 2002-04-12 at 16:19, Martin Baulig wrote: > Hi, > > I was recently working a bit on debugging support for C# (using Mono) > and I need a way to tell GDB about the lifetime of local variables. In > C#, the JIT engine may decide to store two different variables at the > same stack offset if they aren't used throughout the whole function. > > Now I was wondering how to do this - DWARF 2 already has a > `DW_AT_begin_scope' but unfortunately no `DW_AT_end_scope' - can we > add this or something similar as a GNU extension ? No need. Just use DWARF2 location lists to describe where the variables are. --Dan