i, debug->next_idx++, header->locals [i]->type, priv->start_line, stack_offset);
}
- if (minfo->jit->line_numbers) {
+ if (minfo->jit && minfo->jit->line_numbers) {
fprintf (debug->f, ".stabn 68,0,%d,%d\n", priv->start_line, 0);
fprintf (debug->f, ".stabn 68,0,%d,%d\n", priv->first_line,
minfo->jit->prologue_end);
write_method_stabs (user_data, value);
}
+static void
+write_method_func_1 (gpointer key, gpointer value, gpointer user_data)
+{
+ AssemblyDebugInfo *info = (AssemblyDebugInfo *) value;
+
+ g_hash_table_foreach (info->methods, write_method_func, user_data);
+}
+
static void
write_class_stabs (MonoDebugHandle *debug, MonoClass *klass, int idx)
{
mono_debug_write_stabs (MonoDebugHandle *debug)
{
gchar *source_file;
- GList *tmp;
int i;
if (!(debug->f = fopen (debug->filename, "w"))) {
fprintf (debug->f, ",128,0,0,0\n");
}
- for (tmp = debug->info; tmp; tmp = tmp->next) {
- AssemblyDebugInfo *info = (AssemblyDebugInfo*)tmp->data;
-
- g_hash_table_foreach (info->methods, write_method_func, debug);
- }
+ g_hash_table_foreach (debug->images, write_method_func_1, debug);
g_hash_table_foreach (debug->type_hash, write_class, debug);