Suggestion: Detect inconsistent structure definitions

Andrew Cagney ac131313@cygnus.com
Thu Mar 14 22:11:00 GMT 2002


> I would argue that this situation is rare, and that most programmers
>> are unlikely to think of incompatible structure definitions as the
>> cause of a bug.  Therefore, how about a warning issued by default when
>> the object file is read, but with a way to shut it up per-structure in
>> .gdbinit?
> 
> 
> I would wager a guess that this occurs at least once or twice in glibc,
> somewhere.  Or in some other system's system libraries.  Or in the
> application package some hundred graphics applications are using.  Or
> something along those lines.
> 
> In any case, PR filed, hopefully someone will have time and look at it
> soon.

BTW, it is a valid C (but invalid C++) construct.  It occures in GDB.

Andrew




More information about the Gdb mailing list