From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2853 invoked by alias); 3 Jul 2003 12:10:30 -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 2846 invoked from network); 3 Jul 2003 12:10:30 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 3 Jul 2003 12:10:30 -0000 Received: from dsl093-172-017.pit1.dsl.speakeasy.net ([66.93.172.17] helo=nevyn.them.org ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19Y2vo-0003jy-00; Thu, 03 Jul 2003 07:11:20 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19Y2uo-0002VL-00; Thu, 03 Jul 2003 08:10:18 -0400 Date: Thu, 03 Jul 2003 12:10:00 -0000 From: Daniel Jacobowitz To: Roul Oldenburger Cc: gdb@sources.redhat.com Subject: Re: questions on debug informations used by gdb Message-ID: <20030703121018.GA9596@nevyn.them.org> Mail-Followup-To: Roul Oldenburger , gdb@sources.redhat.com References: <3F04082C.4050103@stn-atlas.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F04082C.4050103@stn-atlas.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00061.txt.bz2 On Thu, Jul 03, 2003 at 12:40:44PM +0200, Roul Oldenburger wrote: > Hello there, > > I am quit new to this topic and also to this list. My apologies if I put > this question in the wrong place. > > Instances of datatypes (esp. structures and records in C and Ada) can be > viewed using gdb ... using ddd also let me click them to view each > single component. > What I am looking for is the information gdb is using to display the > name and the value of a structure. More precisely I need the positions > or lets say offsets and sizes of the structures and their components in > memory. I am hoping to find all I need in the debug information gcc > includes into the objectfiles. > > Unfortunately I haven't found something like a list of what kind of > information gcc includes and in what format. > > Having seen gdb uses the same information I am looking for, I like to > know where does it get it from. Probably there are functionalities in > gdb I might use to extract the same information for my purposes? > > And in case the informations I need are included, I also like to know if > there are differences in format if compile for different platforms and > /or different machines? > > If you could help to answer my questions I would be happy! > > Probably my questions seem to be basics for you, so I would be happy if > somone could send me a link to a document or how-to, to solve them on my > own. Your best bet is to take a look at the DWARF specification, and libdwarf. See http://reality.sgiweb.org/~davea/. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer