From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28173 invoked by alias); 23 Nov 2003 04:14:45 -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 28165 invoked from network); 23 Nov 2003 04:14:44 -0000 Received: from unknown (HELO zenia.home) (12.223.225.216) by sources.redhat.com with SMTP; 23 Nov 2003 04:14:44 -0000 Received: by zenia.home (Postfix, from userid 5433) id EA2CE207A2; Sat, 22 Nov 2003 23:14:40 -0500 (EST) To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: dynamic scope from frame, static scope from ??? References: <3FBF77A7.2070207@gnu.org> <3FBF84CF.30401@gnu.org> From: Jim Blandy Date: Sun, 23 Nov 2003 04:14:00 -0000 In-Reply-To: <3FBF84CF.30401@gnu.org> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-11/txt/msg00221.txt.bz2 Andrew Cagney writes: > True. Per: Can't use [some] macro's in conditional breakpoints > http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gdb&pr=856 > GDB currently gets this wrong :-( Yep. parse_exp_1 should take a sal, not a block, and expression_context_pc should have been expression_context_sal. (I've added a note to the PR.) > The "frame" gives us a path to this information is when the program is > running. I'm asking what should should be used to give us that > information when the program isn't running? Actually, now that I look at it, what's wrong with 'struct symtab_and_line' for a static context? You can get a block from that with block_for_pc_sect (sal.pc, sal.section). (There should be a function, block_for_sal, which does that.)