From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29165 invoked by alias); 3 Jul 2003 10:39:41 -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 29136 invoked from network); 3 Jul 2003 10:39:40 -0000 Received: from unknown (HELO mail.provi.de) (193.98.9.7) by sources.redhat.com with SMTP; 3 Jul 2003 10:39:40 -0000 Received: from dsit04f.atlas.de ([141.200.125.99] helo=dsit04.atlas.de) by mail.provi.de with smtp (Exim 3.20 #2) id 19Y1DY-0002aq-00 for gdb@sources.redhat.com; Thu, 03 Jul 2003 12:21:32 +0200 Received: by dsit04.atlas.de; (5.65v4.0/1.3/10May95) id AA22352; Thu, 3 Jul 2003 12:39:39 +0200 Received: from nspc140.atlas.de by dsit03.atlas.de (5.65v4.0/1.1.10.5/28May97-0309PM) id AA22319; Thu, 3 Jul 2003 12:39:39 +0200 Message-Id: <3F04082C.4050103@stn-atlas.de> Date: Thu, 03 Jul 2003 10:39:00 -0000 From: Roul Oldenburger User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: de-de, en-us, en Mime-Version: 1.0 To: gdb@sources.redhat.com Subject: questions on debug informations used by gdb Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-07/txt/msg00059.txt.bz2 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. Thanks a lot Roul Oldenburger