Implement method name wildcard matching for method descriptions
Globbing doesn't work because we don't have g_pattern_match_simple in eglib.
But a plain '*' wildcard does work.
char *sig;
gboolean name_match;
+ if (desc->name_glob && !strcmp (desc->name, "*"))
+ return TRUE;
+#if 0
+ /* FIXME: implement g_pattern_match_simple in eglib */
+ if (desc->name_glob && g_pattern_match_simple (desc->name, method->name))
+ return TRUE;
+#endif
name_match = strcmp (desc->name, method->name) == 0;
if (!name_match)
return FALSE;
for (i = 0; verbose_method_names [i] != NULL; i++){
const char *name = verbose_method_names [i];
- if ((strchr (name, '.') > name) || strchr (name, ':')) {
+ if ((strchr (name, '.') > name) || strchr (name, ':') || strchr (name, '*')) {
MonoMethodDesc *desc;
desc = mono_method_desc_new (name, TRUE);