From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15357 invoked by alias); 19 Oct 2007 19:49:34 -0000 Received: (qmail 15347 invoked by uid 22791); 19 Oct 2007 19:49:34 -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; Fri, 19 Oct 2007 19:49:32 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id 109543901CD for ; Fri, 19 Oct 2007 17:43:22 -0200 (BRDT) 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 l9JJnSnD2183416 for ; Fri, 19 Oct 2007 17:49:28 -0200 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 l9JJnSuw018536 for ; Fri, 19 Oct 2007 16:49:28 -0300 Received: from [9.18.238.59] ([9.18.238.59]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l9JJnRJj018500 for ; Fri, 19 Oct 2007 16:49:28 -0300 Message-ID: <47190A49.5020806@linux.vnet.ibm.com> Date: Fri, 19 Oct 2007 21:31:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: GDB Patches Mailing List Subject: [patch] Expand psymtabs when *exact_match is zero OpenPGP: id=8BFFA900 Content-Type: multipart/mixed; boundary="------------040306050900080104060103" X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-10/txt/msg00457.txt.bz2 This is a multi-part message in MIME format. --------------040306050900080104060103 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 527 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This addresses the issue discussed here: http://sourceware.org/ml/gdb/2007-10/msg00017.html Ok to commit? I can also provide a test case later. Regards, - -- 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 iD8DBQFHGQpIqvq7Aov/qQARAj51AJ4+81ITPywVzd4lburW1AgCip66QgCfSBC0 dHQYq/3jUFpxEqHXrs6+t1s= =MGT7 -----END PGP SIGNATURE----- --------------040306050900080104060103 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; --------------040306050900080104060103 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 iD8DBQBHGQpIqvq7Aov/qQARAjY9AJ4+OHM0kuY/JcarcCdEC1LuXBkBFgCc CQVU1mepc5hjspWXoq4ufGjpJKA= --------------040306050900080104060103--