From 71cddcc1781397b21470ead8662c6805856192c0 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Thu, 24 May 2012 00:23:13 +0000 Subject: * symtab.c (search_symbols): Pass NULL for file_matcher to expand_symtabs_matching if there are no files to match. --- gdb/symtab.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gdb/symtab.c') 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); -- cgit v1.1