Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mini] Allow MONO_VERBOSE_METHOD='*:*' #61520

Merged
merged 1 commit into from
Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/mono/mono/metadata/debug-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,13 @@ mono_method_desc_match (MonoMethodDesc *desc, MonoMethod *method)
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;
Expand Down
2 changes: 1 addition & 1 deletion src/mono/mono/mini/mini.c
Original file line number Diff line number Diff line change
Expand Up @@ -3403,7 +3403,7 @@ mini_method_compile (MonoMethod *method, guint32 opts, JitFlags flags, int parts
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);
Expand Down