This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
-----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-----
2007-09-23 Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
* 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;
Attachment:
expand-psymtabs.diff.sig
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |