From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23890 invoked by alias); 6 Sep 2012 18:46:21 -0000 Received: (qmail 23825 invoked by uid 22791); 6 Sep 2012 18:46:20 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,MISSING_HEADERS,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from ausxipps301.us.dell.com (HELO ausxipps301.us.dell.com) (143.166.148.223) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 06 Sep 2012 18:46:06 +0000 X-Loopcount0: from 10.175.216.251 From: CC: Subject: Re: Types mangled when using "file -readnow " Date: Thu, 06 Sep 2012 18:46:00 -0000 Message-ID: References: In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00004.txt.bz2 On Sep 6, 2012, at 12:16 PM, wrote: > I noticed a strange problem when doing some Python scripting in which I o= pen the execfile with the "-readnow" switch: Some structures (C++ classes,= actually) lose their fields when I do that. >=20 > If I open the file without -readnow, and I do a "ptype", I see a base cla= ss, a data member, and a static method. >=20 > If I open the file with -readnow, ptype shows only the static method, and= omits both the base class and the data member. >=20 > This is GDB 7.3.1, reading binaries produced by GCC 4.5.4 and Binutils 2.= 20.1. Is this a known problem? Fixed in a later release? >=20 > paul >=20 After further investigation, this turns out to be due to incorrect debug da= ta emitted by GCC 4.*. I'll report it there. paul