From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9436 invoked by alias); 28 Sep 2007 22:06:39 -0000 Received: (qmail 9427 invoked by uid 22791); 28 Sep 2007 22:06:38 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Sep 2007 22:06:36 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw1.br.ibm.com (Postfix) with ESMTP id B27ED32C05C for ; Fri, 28 Sep 2007 18:48:21 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8SM6X7u3129594 for ; Fri, 28 Sep 2007 19:06:33 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8SM6Xn8007437 for ; Fri, 28 Sep 2007 19:06:33 -0300 Received: from [9.18.238.59] (dyn531792.br.ibm.com [9.18.238.59]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8SM6WbZ007424; Fri, 28 Sep 2007 19:06:33 -0300 Message-ID: <46FD7AE9.8030208@linux.vnet.ibm.com> Date: Fri, 28 Sep 2007 23:14:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: Jim Blandy CC: gdb@sourceware.org, drow@false.org Subject: Re: DWARF question References: <46FAC9D7.9080001@linux.vnet.ibm.com> <20070926212539.GA17502@caradoc.them.org> <46FAD46B.9000006@br.ibm.com> <46FD5A9B.2070004@linux.vnet.ibm.com> In-Reply-To: OpenPGP: id=8BFFA900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00256.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jim Blandy wrote: > The real question here is, why isn't find_line_symtab doing its job? > Its comment says: > > /* Find line number LINE in any symtab whose name is the same as > SYMTAB. > > If found, return the symtab that contains the linetable in which it was > found, set *INDEX to the index in the linetable of the best entry > found, and set *EXACT_MATCH nonzero if the value returned is an > exact match. > > If not found, return NULL. */ > > That sounds to me like it's meant to address exactly the case we have > here. Could you take a look and tell us what you find? > Good point Jim. I'll take a look at that. The only thing I noticed in that function is that best_index always returns -1 when I try to set a breakpoint by line number in that function. I'm going deeper into that now. One point I forgot to mention and I think it's relevant is that when I load the binary with option '-readnow', that breakpoint by line number in the function works. - -- Carlos Eduardo Seo Software Engineer IBM Linux Technology Center -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG/Xrpqvq7Aov/qQARAu6SAJ4iVznN5AEUHGD7RoBYkzltuTJ+BACfRkjT Ab3YtDRDloriOgDRoTxUS58= =cr9I -----END PGP SIGNATURE-----