aboutsummaryrefslogtreecommitdiff
path: root/gdb/psymtab.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2012-07-12 21:16:09 +0000
committerDoug Evans <dje@google.com>2012-07-12 21:16:09 +0000
commitf80c6f3fc14af9299fb0fdce31580e34c9654d54 (patch)
tree765e8e1299f33190c2abb90ec08616cbd5b54aac /gdb/psymtab.c
parent93c0ef376838b425ab9aa48c737c7757408df3fd (diff)
downloadgdb-f80c6f3fc14af9299fb0fdce31580e34c9654d54.zip
gdb-f80c6f3fc14af9299fb0fdce31580e34c9654d54.tar.gz
gdb-f80c6f3fc14af9299fb0fdce31580e34c9654d54.tar.bz2
* psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r--gdb/psymtab.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c
index 6e84094..5623e2d 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;