* symtab.c (search_symbols): Pass NULL for file_matcher to
authorDoug Evans <dje@google.com>
Thu, 24 May 2012 00:23:13 +0000 (00:23 +0000)
committerDoug Evans <dje@google.com>
Thu, 24 May 2012 00:23:13 +0000 (00:23 +0000)
expand_symtabs_matching if there are no files to match.

gdb/ChangeLog
gdb/symtab.c

index b9a82c3e3d2dc9fffabbf9774cc4a2beea812a90..5aa5b11226f9beaa7886a3efb1839220064d0c2c 100644 (file)
@@ -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>
index 46c365c78b414f5727f080b85e92bff8faa70c2a..bdb93b050e5bced971deea6b552b8b2c812825ba 100644 (file)
@@ -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);
This page took 0.040026 seconds and 4 git commands to generate.