From f80c6f3fc14af9299fb0fdce31580e34c9654d54 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 12 Jul 2012 21:16:09 +0000 Subject: [PATCH] * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs. --- gdb/ChangeLog | 4 ++++ gdb/psymtab.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7f2bfb3dfc..4b78b31bd6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-07-12 Doug Evans + + * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs. + 2012-07-10 Doug Evans PR gdb/13498 diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 6e84094758..5623e2dc5f 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1159,6 +1159,11 @@ map_symbol_filenames_psymtab (struct objfile *objfile, if (ps->readin) continue; + /* We can skip shared psymtabs here, because any file name will be + attached to the unshared psymtab. */ + if (ps->user != NULL) + continue; + /* Anonymous psymtabs don't have a file name. */ if (ps->anonymous) continue;