From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7745 invoked by alias); 28 Nov 2006 19:29:27 -0000 Received: (qmail 7735 invoked by uid 22791); 28 Nov 2006 19:29:27 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 28 Nov 2006 19:29:21 +0000 Received: (qmail 25917 invoked from network); 28 Nov 2006 19:29:15 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Nov 2006 19:29:15 -0000 To: "Rob Quill" Cc: gdb@sourceware.org Subject: Re: Variable values before initialisaton References: <20061123195521.GA18110@nevyn.them.org> <20061124151537.GA12695@nevyn.them.org> From: Jim Blandy Date: Tue, 28 Nov 2006 19:29:00 -0000 In-Reply-To: (Rob Quill's message of "Tue, 28 Nov 2006 11:20:54 +0000") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-11/txt/msg00200.txt.bz2 "Rob Quill" writes: > Interesting. Is it that GCC doesn't implement it, or that GDB doesn't > understand it, or both? How difficult to you think it would be to > implement, because I think it would be quite good to have it right. Neither GCC nor GDB emit DW_AT_start_scope. I don't know about GCC, but it would be somewhat involved in GDB; you'd have to change read_lexical_block_scope in dwarf2read.c to produce a bunch of nested blocks. I'm gathering from your comments that the you've been assuming that GCC + DWARF + GDB present an accurate model of the execution of the source program. But the only (significant to development) consumer of the model we actually present has been humans and the test suite, so little issues like this haven't been tended to very carefully, since humans don't mind them. I don't want to discourage you, but I think you'll find more as you go along, and some may be a lot of work to fix.