This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[OB PATCH] Update debug_qf_expand_symtabs_matching to use typedefs


Hi all,

Commit 206f2a5777679e6d1ad21ce435f6e7af92e2d41a added two new
typedefs, but did not update debug_qf_expand_symtabs_matching
to use them.  This patch fixes this.

This was pushed as two commits (I made a mistake in the first).
I've merged the two together in the patch below, I hope that's
ok.

Thanks,
Gary

--
http://gbenson.net/


2014-02-10  Gary Benson  <gbenson@redhat.com>

	* symfile-debug.c (debug_qf_expand_symtabs_matching):
	Use expand_symtabs_file_matcher_ftype and
	expand_symtabs_symbol_matcher_ftype.
	Rename name_matcher to symbol_matcher.

diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index 705d9cb..e0a5011 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -284,9 +284,8 @@ debug_qf_map_matching_symbols (struct objfile *objfile,
 
 static void
 debug_qf_expand_symtabs_matching (struct objfile *objfile,
-				  int (*file_matcher) (const char *, void *,
-						       int basenames),
-				  int (*name_matcher) (const char *, void *),
+				expand_symtabs_file_matcher_ftype *file_matcher,
+			    expand_symtabs_symbol_matcher_ftype *symbol_matcher,
 				  enum search_domain kind,
 				  void *data)
 {
@@ -297,13 +296,13 @@ debug_qf_expand_symtabs_matching (struct objfile *objfile,
 		    "qf->expand_symtabs_matching (%s, %s, %s, %s, %s)\n",
 		    debug_objfile_name (objfile),
 		    host_address_to_string (file_matcher),
-		    host_address_to_string (name_matcher),
+		    host_address_to_string (symbol_matcher),
 		    search_domain_name (kind),
 		    host_address_to_string (data));
 
   debug_data->real_sf->qf->expand_symtabs_matching (objfile,
 						    file_matcher,
-						    name_matcher,
+						    symbol_matcher,
 						    kind, data);
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]