This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Suggestion: Detect inconsistent structure definitions
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Kris Warkentin <kewarken at qnx dot com>
- Cc: gdb at sources dot redhat dot com, Zack Weinberg <zack at codesourcery dot com>
- Date: Wed, 13 Mar 2002 19:02:10 -0500
- Subject: Re: Suggestion: Detect inconsistent structure definitions
- References: <20020313182221.GE8197@codesourcery.com> <106b01c1cabe$a8e520f0$b6010c0a@catdog>
On Wed, Mar 13, 2002 at 01:41:16PM -0500, Kris Warkentin wrote:
> Seems to me that the linker should be able to detect this problem as
> well....It uses the debug information for error reporting. The problem here
No, the linker uses symbol information. It does -not- read debug info.
> is not so much the definitions of the structures but the reference to a
> variable defined in another object which has a different definition.
That's just a specific case of the problem Zack is describing, really.
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer