* psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
authorDoug Evans <dje@google.com>
Thu, 12 Jul 2012 21:16:09 +0000 (21:16 +0000)
committerDoug Evans <dje@google.com>
Thu, 12 Jul 2012 21:16:09 +0000 (21:16 +0000)
gdb/ChangeLog
gdb/psymtab.c

index 7f2bfb3..4b78b31 100644 (file)
@@ -1,3 +1,7 @@
+2012-07-12  Doug Evans  <dje@google.com>
+
+       * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
+
 2012-07-10  Doug Evans  <dje@google.com>
 
        PR gdb/13498
index 6e84094..5623e2d 100644 (file)
@@ -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;