This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB PATCH] Update debug_qf_expand_symtabs_matching to use typedefs
- From: Gary Benson <gbenson at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 10 Feb 2014 14:56:35 +0000
- Subject: [OB PATCH] Update debug_qf_expand_symtabs_matching to use typedefs
- Authentication-results: sourceware.org; auth=none
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);
}