From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27909 invoked by alias); 22 Aug 2003 08:27:31 -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 27874 invoked from network); 22 Aug 2003 08:27:29 -0000 Received: from unknown (HELO mail96.atlas.de) (194.221.176.153) by sources.redhat.com with SMTP; 22 Aug 2003 08:27:29 -0000 Received: from VSSRV01.atlas.de (vssrv01.atlas.de [10.200.101.18]) by mail96.atlas.de (Postfix) with SMTP id B4F9313A32 for ; Fri, 22 Aug 2003 10:27:28 +0200 (CEST) Received: from mgsrv01.atlas.de ([10.200.101.16]) by VSSRV01.atlas.de (NAVGW 2.5.1.2) with SMTP id M2003082210272920924 for ; Fri, 22 Aug 2003 10:27:29 +0200 Received: by mgsrv01.atlas.de (Postfix, from userid 65534) id 9E51F22B85; Fri, 22 Aug 2003 10:27:28 +0200 (CEST) Received: from dsit03.atlas.de (dsit03.atlas.de [141.200.35.117]) by mgsrv01.atlas.de (Postfix) with SMTP id 62EE722B85 for ; Fri, 22 Aug 2003 10:27:28 +0200 (CEST) Received: from nspc140.atlas.de by dsit03.atlas.de (5.65v4.0/1.1.10.5/28May97-0309PM) id AA28249; Fri, 22 Aug 2003 10:27:28 +0200 Message-Id: <3F45D472.2070407@rheinmetall-de.com> Date: Fri, 22 Aug 2003 08:27: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: how does gdb read type descriptions for structures Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-5.4 required=5.0 tests=BAYES_01,USER_AGENT_MOZILLA_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-SW-Source: 2003-08/txt/msg00251.txt.bz2 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? Thanks for your help Roul Oldenburger