From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12767 invoked by alias); 4 Apr 2005 17:09:26 -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 12589 invoked from network); 4 Apr 2005 17:09:21 -0000 Received: from unknown (HELO biscayne-one-station.mit.edu) (18.7.7.80) by sourceware.org with SMTP; 4 Apr 2005 17:09:21 -0000 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by biscayne-one-station.mit.edu (8.12.4/8.9.2) with ESMTP id j34H99KS027920; Mon, 4 Apr 2005 13:09:10 -0400 (EDT) Received: from contents-vnder-pressvre.mit.edu (CONTENTS-VNDER-PRESSVRE.MIT.EDU [18.7.16.67]) (authenticated bits=56) (User authenticated as nathanw@ATHENA.MIT.EDU) by outgoing.mit.edu (8.12.4/8.12.4) with ESMTP id j34H910b015415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 4 Apr 2005 13:09:02 -0400 (EDT) Received: (from nathanw@localhost) by contents-vnder-pressvre.mit.edu (8.12.9) id j34H91UZ020110; Mon, 4 Apr 2005 13:09:01 -0400 (EDT) To: "Stuart Brooks" Cc: Subject: Re: gdb 5.3nb1 crashing when accessing elements in static libs References: <0f4601c538fc$30c35970$5e22a8c0@STU95> From: "Nathan J. Williams" Organization: Wasabi Systems, Inc. Date: Mon, 04 Apr 2005 17:09:00 -0000 In-Reply-To: <0f4601c538fc$30c35970$5e22a8c0@STU95> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.9 X-Spam-Flag: NO X-SW-Source: 2005-04/txt/msg00032.txt.bz2 "Stuart Brooks" writes: > I am experiencing problems when interrogating a core file - as soon as I > try to access a global variable in a statically linked library or view > the internals of a class/struct declared in a static lib gdb either says > , gives garbage or segmentation faults. Details of my > system are: > > OS: Netbsd 2.0 > gdb: 5.3nb1 > compiler: g++ 3.3 I'm assuming this is i386? You're going to be in some pain with C++ on this combination; netbsd/i386 2.0 sets gcc to use the stabs debugging format by default instead of dwarf-2, because of a bug in 3.3's dwarf generation (netbsd PR #25094; equivalent to GCC bug #16788) [I'm not at all sure that this is the right tradeoff for that bug]. - Nathan