This is the mail archive of the gdb@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: Suggestion: Detect inconsistent structure definitions


On Wed, Mar 13, 2002 at 07:07:08PM -0500, Daniel Jacobowitz wrote:
> 
> ... When do we have enough information to know that two references
> are 'supposed' to be of the same type, rather than an
> implementation-private type?  And in stabs, at least, no debug
> information appears to be emitted for 'extern' statements, so we
> don't know if a file referenced the type it had a different
> definition of or not.

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?

> Please file a GNATS PR so that this idea doesn't get forgotten.

Done, #420.

zw


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