Skip to content

Commit

Permalink
Add some debug logging to lookup_data_table () to help track down why…
Browse files Browse the repository at this point in the history
… it asserts sometimes.
  • Loading branch information
vargaz committed Nov 28, 2012
1 parent 6b104c2 commit 83f9559
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mono/metadata/mono-debug.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ lookup_data_table (MonoDomain *domain)
MonoDebugDataTable *table; MonoDebugDataTable *table;


table = g_hash_table_lookup (data_table_hash, domain); table = g_hash_table_lookup (data_table_hash, domain);
g_assert (table); if (!table) {
g_error ("lookup_data_table () failed for %p\n", domain);
g_assert (table);
}
return table; return table;
} }


Expand Down

0 comments on commit 83f9559

Please sign in to comment.