diff options
author | Doug Evans <dje@google.com> | 2012-05-24 00:23:13 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-05-24 00:23:13 +0000 |
commit | 71cddcc1781397b21470ead8662c6805856192c0 (patch) | |
tree | 8ddfd4b47457b2e2f6c5572f43d4176a2ecd1123 /gdb/symtab.c | |
parent | f87b241e49c958386f7b0a9b7269234b00c02f7f (diff) | |
download | gdb-71cddcc1781397b21470ead8662c6805856192c0.zip gdb-71cddcc1781397b21470ead8662c6805856192c0.tar.gz gdb-71cddcc1781397b21470ead8662c6805856192c0.tar.bz2 |
* symtab.c (search_symbols): Pass NULL for file_matcher to
expand_symtabs_matching if there are no files to match.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |