From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5044 invoked by alias); 30 Jan 2008 09:30:47 -0000 Received: (qmail 5030 invoked by uid 22791); 30 Jan 2008 09:30:47 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 09:30:27 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id A45B118701C; Wed, 30 Jan 2008 10:36:47 +0100 (CET) From: "Pierre Muller" To: , "'Daniel Jacobowitz'" Cc: "'Joel Brobecker'" , References: Your message of Tue, 29 Jan 2008 17:41:23 -0500. <20080129224123.GA6586@caradoc.them.org> <200801292349.m0TNnVaV025063@tully.CS.Berkeley.EDU> In-Reply-To: <200801292349.m0TNnVaV025063@tully.CS.Berkeley.EDU> Subject: RE: generic code duplication in Ada files Date: Wed, 30 Jan 2008 11:39:00 -0000 Message-ID: <000201c86322$bf093a30$3d1bae90$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00783.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Paul Hilfinger > Sent: Wednesday, January 30, 2008 12:50 AM > To: Daniel Jacobowitz > Cc: Joel Brobecker; gdb-patches@sourceware.org > Subject: Re: generic code duplication in Ada files > > > > Some of the things in Ada-specific code will be a mess to get into > > common code, but IMO clearly worthwhile. For instance, a version of > > symbol lookup which can return more than one symbol. But pascal language has the same feature: variables with the same name can coexist in different units, either in the interface part (accessible to other units or the main program if they reference the unit in the USES clause) or private in the implementation part. I am not sure the degugging information provided is always precise enough to be able to sort out which variable the compiler has chosen when a variable multiply defined is used. Anyhow, getting the list of all public versions of a given name would be great for pascal language too. Pierre Muller Pascal language support maintainer