diff options
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/symtab.c | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b9a82c3..5aa5b11 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2012-05-23 Doug Evans <dje@google.com> + * symtab.c (search_symbols): Pass NULL for file_matcher to + expand_symtabs_matching if there are no files to match. + * gdbtypes.c (lookup_typename): Simplify. 2012-05-23 Pedro Alves <palves@redhat.com> diff --git a/gdb/symtab.c b/gdb/symtab.c index 46c365c..bdb93b0 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -3426,7 +3426,9 @@ search_symbols (char *regexp, enum search_domain kind, { if (objfile->sf) objfile->sf->qf->expand_symtabs_matching (objfile, - search_symbols_file_matches, + (nfiles == 0 + ? NULL + : search_symbols_file_matches), search_symbols_name_matches, kind, &datum); |