* stabsread.c (multiply_defined_struct): New complaint.
authorJim Blandy <jimb@codesourcery.com>
Sat, 4 May 2002 00:02:50 +0000 (00:02 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sat, 4 May 2002 00:02:50 +0000 (00:02 +0000)
commit2ae1c2d22252e6ac448c9e5fe11d7cd8701284e3
tree69815d84902a0fbb1c0e9da5884bed811bcce7ea
parentae0c415a5cfa89517a78c9c40e45a819f5a0b16c
* stabsread.c (multiply_defined_struct): New complaint.
(read_struct_type): If the type we were passed isn't empty, or
incomplete, don't read the new struct type into it; complain,
and return the original type unchanged.  Take a new `type_code'
argument, which is the type code for the new type.
(read_type): Rather than storing the type's type code here, pass
it as an argument to read_struct_type, and let that take care of
storing it.  That way, we don't overwrite the original type code,
so read_struct_type can use it to decide whether we're overwriting
something we shouldn't.
(complain_about_struct_wipeout): New function.
gdb/ChangeLog
gdb/stabsread.c