From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26341 invoked by alias); 6 Sep 2012 16:16:50 -0000 Received: (qmail 26324 invoked by uid 22791); 6 Sep 2012 16:16:46 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,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 16:16:34 +0000 X-Loopcount0: from 10.175.216.249 From: To: Subject: Types mangled when using "file -readnow " Date: Thu, 06 Sep 2012 16:16:00 -0000 Message-ID: Content-Type: text/plain; charset="us-ascii" Content-ID: <11519C1BDD743B4D85BE5D60299A093A@dell.com> 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/msg00003.txt.bz2 I noticed a strange problem when doing some Python scripting in which I ope= n the execfile with the "-readnow" switch: Some structures (C++ classes, a= ctually) lose their fields when I do that. If I open the file without -readnow, and I do a "ptype", I see a base class= , a data member, and a static method. If I open the file with -readnow, ptype shows only the static method, and o= mits both the base class and the data member. 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? paul