* [RFC] psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
@ 2012-07-10 20:57 Doug Evans
2012-07-11 14:10 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Doug Evans @ 2012-07-10 20:57 UTC (permalink / raw)
To: tromey, gdb-patches
Hi.
I don't know if this patch is correct or not.
It looked odd that partial_map_symtabs_matching_filename
and expand_symtabs_matching_via_partial skip shared symtabs but
map_symbol_filenames_psymtab does not.
2012-07-10 Doug Evans <dje@google.com>
* psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
Index: psymtab.c
===================================================================
RCS file: /cvs/src/src/gdb/psymtab.c,v
retrieving revision 1.50
diff -u -p -r1.50 psymtab.c
--- psymtab.c 10 Jul 2012 20:17:30 -0000 1.50
+++ psymtab.c 10 Jul 2012 20:53:14 -0000
@@ -1159,6 +1159,11 @@ map_symbol_filenames_psymtab (struct obj
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;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-07-12 21:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-10 20:57 [RFC] psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs Doug Evans
2012-07-11 14:10 ` Tom Tromey
2012-07-12 21:16 ` Doug Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox