From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11356 invoked by alias); 14 Mar 2002 00:02:17 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 11174 invoked from network); 14 Mar 2002 00:02:13 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 14 Mar 2002 00:02:13 -0000 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 16lIh8-0006zu-00; Wed, 13 Mar 2002 19:02:10 -0500 Date: Wed, 13 Mar 2002 16:02:00 -0000 From: Daniel Jacobowitz To: Kris Warkentin Cc: gdb@sources.redhat.com, Zack Weinberg Subject: Re: Suggestion: Detect inconsistent structure definitions Message-ID: <20020313190210.A26841@nevyn.them.org> Mail-Followup-To: Kris Warkentin , gdb@sources.redhat.com, Zack Weinberg References: <20020313182221.GE8197@codesourcery.com> <106b01c1cabe$a8e520f0$b6010c0a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <106b01c1cabe$a8e520f0$b6010c0a@catdog> User-Agent: Mutt/1.3.23i X-SW-Source: 2002-03/txt/msg00123.txt.bz2 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