From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30386 invoked by alias); 20 May 2003 22:05:29 -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 30359 invoked from network); 20 May 2003 22:05:28 -0000 Received: from unknown (HELO esds.vss.fsi.com) (66.136.174.212) by sources.redhat.com with SMTP; 20 May 2003 22:05:28 -0000 Received: from eos.vss.fsi.com (eos [198.51.27.61]) by esds.vss.fsi.com (8.9.1a/8.9.1) with ESMTP id RAA07484 for ; Tue, 20 May 2003 17:05:26 -0500 (CDT) Received: from localhost (ford@localhost) by eos.vss.fsi.com (8.11.6+Sun/8.11.6) with ESMTP id h4KM5Q007493 for ; Tue, 20 May 2003 17:05:26 -0500 (CDT) X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs Date: Tue, 20 May 2003 22:05:00 -0000 From: Brian Ford X-X-Sender: ford@eos To: gdb@sources.redhat.com Subject: Re: DWARF2 PE/COFF port and parsing ? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-05/txt/msg00279.txt.bz2 On Tue, 20 May 2003, Brian Ford wrote: > > What does "p *pst" say? Unfortunately, the bug may have occurred when > > another psymtab was being generated: all the psymtabs within one > > objfile share one data structure, so an error when generating one > > psymtab may corrupt another psymtab's data. (Sigh. Partial symbol > > tables are a mess.) > > > (gdb) p *pst > Cannot access memory at address 0x0 > (gdb) p pst > $1 = (struct partial_symtab *) 0x0 > Um, sorry. That obviously looks wrong because of optimization. Here is what it says without -O2: (gdb) p *pst $1 = {next = 0x1052a018, filename = 0x1052a0e8 "../../gcc/gcc/libgcc2.c", fullname = 0x0, objfile = 0x10148238, section_offsets = 0x1014e440, textlow = 4922848, texthigh = 4922848, dependencies = 0x1052a118, number_of_dependencies = 4, globals_offset = 1151, n_global_syms = 2, statics_offset = 24280, n_static_syms = 21, symtab = 0x0, read_symtab = 0x4f1170 , read_symtab_private = 0x1052a100 "D\030\031", readin = 0 '\0'} -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444