This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: generic code duplication in Ada files



> -----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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]