From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13581 invoked by alias); 22 Aug 2003 12:52:13 -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 13574 invoked from network); 22 Aug 2003 12:52:13 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 22 Aug 2003 12:52:13 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19qBOm-0004XV-6z; Fri, 22 Aug 2003 08:52:12 -0400 Date: Fri, 22 Aug 2003 12:52:00 -0000 From: Daniel Jacobowitz To: Roul Oldenburger Cc: gdb@sources.redhat.com Subject: Re: how does gdb read type descriptions for structures Message-ID: <20030822125211.GA17380@nevyn.them.org> Mail-Followup-To: Roul Oldenburger , gdb@sources.redhat.com References: <3F45D472.2070407@rheinmetall-de.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F45D472.2070407@rheinmetall-de.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00253.txt.bz2 On Fri, Aug 22, 2003 at 10:29:38AM +0200, Roul Oldenburger wrote: > Hello everyone, > > most time I am only using gdb and most time via ddd but I have got a > question for gdb internals. > > I am trying to reconstruct type descriptions for a tree of structures > from stabs debug informations included in executables. > > Using for example 'ptype my_structure' in gdb delivers me components and > types of my_structure but it looks like gdb prints part of the source > code ... or does it evaluate its symbol tables or stabs information via > BFD directly? > > Furthermore I need to know the offset/address of each component of each > substructure in the structure tree ... we are using quit complex > structures. > > Using 'objdump --stabs' I will get all the information/ type > descriptions I need but I hope there is another way to retrieve this > information rather than working it out from the text in .stabstr. > > How does gdb does it? >From the debug info - i.e. the text in .stabstr. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer