From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3397 invoked by alias); 16 Jul 2004 17:57:23 -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 3389 invoked from network); 16 Jul 2004 17:57:22 -0000 Received: from unknown (HELO marvin.codito.net) (203.197.88.2) by sourceware.org with SMTP; 16 Jul 2004 17:57:22 -0000 Received: from webmail.codito.com (localhost [127.0.0.1]) by marvin.codito.net (8.12.11/) with ESMTP id i6GICeRP030949; Fri, 16 Jul 2004 23:42:45 +0530 Received: from 203.145.159.40 (SquirrelMail authenticated user ramana.radhakrishnan); by webmail.codito.com with HTTP; Fri, 16 Jul 2004 23:42:45 +0530 (IST) Message-ID: <3089.203.145.159.40.1090001565.squirrel@203.145.159.40> Date: Fri, 16 Jul 2004 17:59:00 -0000 Subject: Re: how does gdb extract symbol table information from binary files? From: "Ramana Radhakrishnan" To: "Rohit Grover" Cc: gdb@sources.redhat.com Reply-To: ramana.radhakrishnan@codito.com User-Agent: SquirrelMail/1.4.3a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamd / ClamAV version 0.73, clamav-milter version 0.73a on marvin.codito.net X-Virus-Status: Clean X-SW-Source: 2004-07/txt/msg00212.txt.bz2 > Hello, > > Could someone please help me understand how gdb fishes symbol table > information when asked to print a struct value? I tried working my way > down print_command_1(), but didn't succeed. Or do you mean type information ? The symbol information can minimally be gleaned from the ELF headers. The type information and the association of a variable / address with a type would come from the debug info in whatever form that might be. cheers Ramana ---- Ramana Radhakrishnan GNU Tools (codito ergo sum) www.codito.com