From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16165 invoked by alias); 28 Jul 2005 00:12:48 -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 16136 invoked by uid 22791); 28 Jul 2005 00:12:39 -0000 Received: from bay105-f23.bay105.hotmail.com (HELO hotmail.com) (65.54.224.33) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 28 Jul 2005 00:12:39 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 27 Jul 2005 17:12:36 -0700 Message-ID: Received: from 65.54.224.200 by by105fd.bay105.hotmail.msn.com with HTTP; Thu, 28 Jul 2005 00:12:36 GMT X-Originating-Email: [ikiwibebe@hotmail.com] X-Sender: ikiwibebe@hotmail.com In-Reply-To: From: "Sp3cial K" To: jmolenda@apple.com Cc: gdb@sources.redhat.com Bcc: Subject: Re: Linetable Date: Thu, 28 Jul 2005 00:12:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-SW-Source: 2005-07/txt/msg00257.txt.bz2 Hi Jason, Thanks for responding so quickly. Oops, I was referring to the symbol table as NAS.map. I'm working on solving the multiple constructor/destructor bug. The multiple memory location of the same constructor/destructor is found in the symbol table, and I'm trying to do a lookup on all the entries with the same line number in the linetable. Basically, when there is a weak symbol (overloaded functions), the linetable contains the same line number with different pc, and then there will be an entry with line number=0 and a valid pc. Only one of those pc is found in the symbol table. I wanted to know where exactly in the code does GDB put all the pc from different version of the object files into the linetable, and why are there pc addresses in the linetable that are not in the symbol table. ~K >From: Jason Molenda >To: Sp3cial K >CC: gdb@sources.redhat.com >Subject: Re: Linetable >Date: Wed, 27 Jul 2005 15:01:51 -0700 > > >On Jul 27, 2005, at 2:54 PM, Sp3cial K wrote: > >>Hi, can someone please explain how symtab->linetable is constructed? > >You're probably best off starting by looking at the readelf -wl output of >your executable. > > >>For each of the functions, the linetable contains two entries with same >>line number and slightly different pc, but these entries are not in >>NAS.map! > >I have no idea what NAS.map is. > >Before you assume that gdb has incorrectly read the line table, you should >start by looking at the line table information in the executable. > >Jason