This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: generic code duplication in Ada files
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: <Hilfinger at CS dot Berkeley dot EDU>, "'Daniel Jacobowitz'" <drow at false dot org>
- Cc: "'Joel Brobecker'" <brobecker at adacore dot com>, <gdb-patches at sourceware dot org>
- Date: Wed, 30 Jan 2008 10:30:26 +0100
- Subject: RE: generic code duplication in Ada files
- References: Your message of Tue, 29 Jan 2008 17:41:23 -0500. <20080129224123.GA6586@caradoc.them.org> <200801292349.m0TNnVaV025063@tully.CS.Berkeley.EDU>
> -----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