This is the mail archive of the gdb-patches@sources.redhat.com 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: RFA: GCC stabs don't contain prototype info



Daniel Berlin <dan@cgsoftware.com> writes:
> > FYI, it is not only stabs that fails this test.  I've got a recent
> > elf/dwarf target that also fails it.
> 
> Err, it shouldn't.
> Unless you really mean dwarf and not dwarf2.
> GCC adds DW_AT_prototyped to prototyped functions.
> And gdb consumes it.

With Dwarf 2, GDB always has enough information to do the right
thing, but it doesn't use it.

At the moment, a function type can have its TYPE_FLAG_PROTOTYPED flag
set or clear.  Stabs doesn't set it reliably; Dwarf 2 does.  But the
code which checks this flag doesn't know where its setting came from,
so it doesn't know whether it should trust it or not.  There's an
arch-specific macro which says whether it should.  *gag*


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