From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26792 invoked by alias); 15 Mar 2002 06:11:35 -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 26689 invoked from network); 15 Mar 2002 06:11:33 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 15 Mar 2002 06:11:33 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BA4433C97; Fri, 15 Mar 2002 01:11:27 -0500 (EST) Message-ID: <3C91908F.9040508@cygnus.com> Date: Thu, 14 Mar 2002 22:11:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.8) Gecko/20020210 X-Accept-Language: en-us MIME-Version: 1.0 To: Daniel Jacobowitz Cc: Zack Weinberg , gdb@sources.redhat.com Subject: Re: Suggestion: Detect inconsistent structure definitions References: <20020313182221.GE8197@codesourcery.com> <20020313190708.B26841@nevyn.them.org> <20020314191337.GF19703@codesourcery.com> <20020315000408.B23867@nevyn.them.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00138.txt.bz2 > 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