From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19033 invoked by alias); 2 Oct 2007 23:05:59 -0000 Received: (qmail 19025 invoked by uid 22791); 2 Oct 2007 23:05:59 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 02 Oct 2007 23:05:54 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id AB3AC3903C0 for ; Tue, 2 Oct 2007 20:00:37 -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 l92N5pbB3166216 for ; Tue, 2 Oct 2007 20:05:51 -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 l92N5orm024597 for ; Tue, 2 Oct 2007 20:05:51 -0300 Received: from [9.18.198.141] ([9.18.198.141]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l92N5oCB024585; Tue, 2 Oct 2007 20:05:50 -0300 Message-ID: <4702CEBE.2090009@linux.vnet.ibm.com> Date: Tue, 02 Oct 2007 23:05: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, vladimir@codesourcery.com 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> <46FD7AE9.8030208@linux.vnet.ibm.com> <4701333C.9040705@linux.vnet.ibm.com> <4702BB75.7050906@linux.vnet.ibm.com> In-Reply-To: <4702BB75.7050906@linux.vnet.ibm.com> OpenPGP: id=8BFFA900 Content-Type: multipart/mixed; boundary="------------060004070400030307020705" 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-10/txt/msg00031.txt.bz2 This is a multi-part message in MIME format. --------------060004070400030307020705 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 874 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Carlos Eduardo Seo wrote: > > I've written a patch and it worked: > > (gdb) b 25 > Breakpoint 1 at 0x10000670: file fxdb1251-main.f, line 25. > (gdb) b 31 > Breakpoint 2 at 0x100007cc: file fxdb1251-main.f, line 31. > > I'll post it here as soon as I finish my regression tests. Then we can > discuss if the solution is OK. Here's what I did. My testsuite run shows no regressions. I'm not sure if this is the appropriate place to put the psymtab sweep, though. What do you think? - -- 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 iD8DBQFHAs69qvq7Aov/qQARAse2AJ44Clae3J1eHr1bywraxOCmJ2LmzACeP6sv uWnFk7mzAcxTeHIi3kDaRlo= =lxnr -----END PGP SIGNATURE----- --------------060004070400030307020705 Content-Type: text/x-patch; name="expand-psymtabs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="expand-psymtabs.diff" Content-length: 777 2007-09-23 Carlos Eduardo Seo * symtab.c (find_line_symtab): scan through psymtabs when exact_match is zero. Index: src/gdb/symtab.c =================================================================== --- src.orig/gdb/symtab.c +++ src/gdb/symtab.c @@ -2280,12 +2280,20 @@ find_line_symtab (struct symtab *symtab, struct objfile *objfile; struct symtab *s; + struct partial_symtab *p; if (best_index >= 0) best = best_linetable->item[best_index].line; else best = 0; + ALL_PSYMTABS (objfile, p) + { + if (strcmp (symtab->filename, p->filename) != 0) + continue; + PSYMTAB_TO_SYMTAB (p); + } + ALL_SYMTABS (objfile, s) { struct linetable *l; --------------060004070400030307020705 Content-Type: application/octet-stream; name="expand-psymtabs.diff.sig" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="expand-psymtabs.diff.sig" Content-length: 90 iD8DBQBHAs69qvq7Aov/qQARAoKdAJ96RWKHwb9jPV7OW8OsJVlTyi8AiACc DRfxm/0VsMR2KyFbbmQD4xdMMBU= --------------060004070400030307020705--