From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19453 invoked by alias); 6 Oct 2003 14:54:28 -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 19337 invoked from network); 6 Oct 2003 14:54:26 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 6 Oct 2003 14:54:26 -0000 Received: from drow by nevyn.them.org with local (Exim 4.22 #1 (Debian)) id 1A6Wki-0008VR-VO; Mon, 06 Oct 2003 10:54:24 -0400 Date: Mon, 06 Oct 2003 14:54:00 -0000 From: Daniel Jacobowitz To: Roul Oldenburger Cc: Jim Blandy , gdb@sources.redhat.com Subject: Re: gdb-internal: determining the type of a variable Message-ID: <20031006145424.GB32561@nevyn.them.org> Mail-Followup-To: Roul Oldenburger , Jim Blandy , gdb@sources.redhat.com References: <3F7C1F5F.5030102@rheinmetall-de.com> <3F818024.7020605@rheinmetall-de.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F818024.7020605@rheinmetall-de.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-10/txt/msg00099.txt.bz2 On Mon, Oct 06, 2003 at 04:45:56PM +0200, Roul Oldenburger wrote: > Thanks for your effort giving me your explanation! > > Looking at the stabs information from our executables which are linked > from several o-files I find FILENUM being 0 for all typedescriptions. > Probably I could distinguish between the duplicate descriptions if > FILNUM would differ. Unfortunately I don't know why it is 0 all the way? > > Roul FILENUM is only different within a single compilation unit - N_SO. You have to parse it in chunks, from an N_SO with a value until the next N_SO generally. But if you are going to parse debug info, I really recommend DWARF instead... it's much easier. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer