Check source files without path as well when using MOD_KIND_SOURCE_FILE_ONLY modifier...
authorZoltan Varga <vargaz@gmail.com>
Mon, 14 Jan 2013 14:36:10 +0000 (15:36 +0100)
committerZoltan Varga <vargaz@gmail.com>
Mon, 14 Jan 2013 14:36:22 +0000 (15:36 +0100)
mono/mini/debugger-agent.c

index 9c42a1f78c29bfa3f369539a6c0f23b9bd20e546..dbe0518cfb8537ba83537df1806adf28f5ffa541 100644 (file)
@@ -3353,6 +3353,15 @@ create_event_list (EventKind event, GPtrArray *reqs, MonoJitInfo *ji, EventInfo
                                                                s = strdup_tolower (sinfo->source_file);
                                                                if (g_hash_table_lookup (mod->data.source_files, s))
                                                                        found = TRUE;
+                                                               else {
+                                                                       char *s2 = g_path_get_basename (sinfo->source_file);
+                                                                       char *s3 = strdup_tolower (s2);
+
+                                                                       if (g_hash_table_lookup (mod->data.source_files, s3))
+                                                                               found = TRUE;
+                                                                       g_free (s2);
+                                                                       g_free (s3);
+                                                               }
                                                                g_free (s);
                                                        }
                                                        g_ptr_array_free (source_file_list, TRUE);