This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Replace TYPE_FLAG_PROTOTYPED with two flags
- From: Michael Elizabeth Chastain <mec at shout dot net>
- To: drow at mvista dot com
- Cc: gdb at sources dot redhat dot com, jimb at redhat dot com
- Date: Sat, 4 Jan 2003 12:02:41 -0600
- Subject: Re: Replace TYPE_FLAG_PROTOTYPED with two flags
Wow, Daniel!
My observation with stabs+ matches yours: gcc does not emit a prototype,
but it does correctly mark the formal argument with 'float' or
'double'.
This ought to get a lot more cases correct, with provisions for
more kludges^H^H^H^H^H^H^H extensions if strange compilers show up.
I do think it's a bit of hack for the stabs reader to claim that all
functions are prototyped. I think TYPE_FLAG_PROTO_KNOWN would be
more accurate. But it's not like new broken compilers are showing up
all the time (I hope).
Someday, it will all be dwarf-2.
Michael C