This is the mail archive of the gdb@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: Best way to work with settings that apply to a file (or dwarf cu)


On Wed, Oct 12, 2011 at 5:09 AM, Joost van der Sluis <joost@cnoc.nl> wrote:
> On the other hand, I saw that this same problem also applies to the
> language of a symbol. But instead of querying the symtab for the
> language, the symbol has a field called language, which is set for each
> symbol within a compilation-unit. (For Dwarf)
>
> ie: all symbols do have a language setting. But for all symbols within
> one symtab this setting is the same. Wouldn't it be easier to add a link
> in each symbol to it's symtab, and store the language there? (This is
> what I tried to do for this specific pascal-flag)

IMO, it's going to be a lot easier if you make all you need available
in the type.  There's precedent for that in GDB.

There are a couple of reasons you don't want a type to symtab link -
for instance, handling of types which are duplicated across multiple
input files.  We don't do that very well today, but we should.

-- 
Thanks,
Daniel


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