* symfile.h (struct quick_symbol_functions): Reorg arg list of
authorDoug Evans <dje@google.com>
Wed, 25 Sep 2013 21:44:11 +0000 (21:44 +0000)
committerDoug Evans <dje@google.com>
Wed, 25 Sep 2013 21:44:11 +0000 (21:44 +0000)
map_matching_symbols so objfile is first.  All uses updated.
* dwarf2read.c (dw2_map_matching_symbols): Update signature.
* psymtab.c (map_matching_symbols_psymtab): Update signature.

gdb/ChangeLog
gdb/ada-lang.c
gdb/dwarf2read.c
gdb/psymtab.c
gdb/symfile.h

index 44ffc1f3a5feaef44b6f1aae435c1cf34c163a9d..68c0a7dbfe2db9e15a44b06e27572f3f63e8dde2 100644 (file)
@@ -1,3 +1,10 @@
+2013-09-25  Doug Evans  <dje@google.com>
+
+       * symfile.h (struct quick_symbol_functions): Reorg arg list of
+       map_matching_symbols so objfile is first.  All uses updated.
+       * dwarf2read.c (dw2_map_matching_symbols): Update signature.
+       * psymtab.c (map_matching_symbols_psymtab): Update signature.
+
 2013-09-25  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
        PR shlibs/8882
index f29c3516f3bf0c4e977d555e53d8ef8e820f4299..d2b0ed2eff61f1719f47efb62ed2a44df3c070d4 100644 (file)
@@ -5040,11 +5040,11 @@ add_nonlocal_symbols (struct obstack *obstackp, const char *name,
       data.objfile = objfile;
 
       if (is_wild_match)
-       objfile->sf->qf->map_matching_symbols (name, domain, objfile, global,
+       objfile->sf->qf->map_matching_symbols (objfile, name, domain, global,
                                               aux_add_nonlocal_symbols, &data,
                                               wild_match, NULL);
       else
-       objfile->sf->qf->map_matching_symbols (name, domain, objfile, global,
+       objfile->sf->qf->map_matching_symbols (objfile, name, domain, global,
                                               aux_add_nonlocal_symbols, &data,
                                               full_match, compare_names);
     }
@@ -5057,8 +5057,8 @@ add_nonlocal_symbols (struct obstack *obstackp, const char *name,
          strcpy (name1, "_ada_");
          strcpy (name1 + sizeof ("_ada_") - 1, name);
          data.objfile = objfile;
-         objfile->sf->qf->map_matching_symbols (name1, domain,
-                                                objfile, global,
+         objfile->sf->qf->map_matching_symbols (objfile, name1, domain,
+                                                global,
                                                 aux_add_nonlocal_symbols,
                                                 &data,
                                                 full_match, compare_names);
index 14d9a32a0076089e1546501fd3cfebdd80a82497..be2093ab185fa3efc16d00fbeae42b0fb4fd3b2c 100644 (file)
@@ -3478,8 +3478,9 @@ dw2_expand_symtabs_with_fullname (struct objfile *objfile,
 }
 
 static void
-dw2_map_matching_symbols (const char * name, domain_enum namespace,
-                         struct objfile *objfile, int global,
+dw2_map_matching_symbols (struct objfile *objfile,
+                         const char * name, domain_enum namespace,
+                         int global,
                          int (*callback) (struct block *,
                                           struct symbol *, void *),
                          void *data, symbol_compare_ftype *match,
index feea823c67aa91d1c00f52bc66d484826f8fce23..8eac5e134fd4491de77e290d6d60953325127518 100644 (file)
@@ -1238,8 +1238,9 @@ map_block (const char *name, domain_enum namespace, struct objfile *objfile,
     the definition of quick_symbol_functions in symfile.h.  */
 
 static void
-map_matching_symbols_psymtab (const char *name, domain_enum namespace,
-                             struct objfile *objfile, int global,
+map_matching_symbols_psymtab (struct objfile *objfile,
+                             const char *name, domain_enum namespace,
+                             int global,
                              int (*callback) (struct block *,
                                               struct symbol *, void *),
                              void *data,
index ac5b711116e3e0f539a4c0bbfe807af3f23b421c..b08941123dc4fcf9297da2470a4d2710b533b82f 100644 (file)
@@ -237,8 +237,9 @@ struct quick_symbol_functions
      CALLBACK returns 0 to indicate that the scan should continue, or
      non-zero to indicate that the scan should be terminated.  */
 
-  void (*map_matching_symbols) (const char *name, domain_enum namespace,
-                               struct objfile *, int global,
+  void (*map_matching_symbols) (struct objfile *,
+                               const char *name, domain_enum namespace,
+                               int global,
                                int (*callback) (struct block *,
                                                 struct symbol *, void *),
                                void *data,