Exemple #1
0
static void
mono_debug_add_assembly (MonoAssembly *assembly, gpointer user_data)
{
    mono_debugger_lock ();
    mono_debug_open_image (mono_assembly_get_image (assembly), NULL, 0);
    mono_debugger_unlock ();
}
Exemple #2
0
void
mono_debug_open_image_from_memory (MonoImage *image, const guint8 *raw_contents, int size)
{
	if (!mono_debug_initialized)
		return;

	mono_debug_open_image (image, raw_contents, size);
}
Exemple #3
0
/*
 * INTERNAL USE ONLY !
 */
void
_mono_debug_init_corlib (MonoDomain *domain)
{
	if (!mono_debug_initialized)
		return;

	mono_symbol_table->corlib = mono_debug_open_image (mono_defaults.corlib, NULL, 0);
	mono_debugger_event (MONO_DEBUGGER_EVENT_INITIALIZE_CORLIB,
			     (guint64) (gsize) mono_symbol_table->corlib, 0);
}
Exemple #4
0
static void
mono_debug_add_assembly (MonoAssembly *assembly, gpointer user_data)
{
	MonoDebugHandle *handle;
	MonoImage *image;

	mono_debugger_lock ();
	image = mono_assembly_get_image (assembly);
	handle = open_symfile_from_bundle (image);
	if (!handle)
		mono_debug_open_image (image, NULL, 0);
	mono_debugger_unlock ();
}
Exemple #5
0
static MonoDebugHandle *
open_symfile_from_bundle (MonoImage *image)
{
	BundledSymfile *bsymfile;

	for (bsymfile = bundled_symfiles; bsymfile; bsymfile = bsymfile->next) {
		if (strcmp (bsymfile->aname, image->module_name))
			continue;

		return mono_debug_open_image (image, bsymfile->raw_contents, bsymfile->size);
	}

	return NULL;
}
Exemple #6
0
void
mono_debug_open_image_from_memory (MonoImage *image, const guint8 *raw_contents, int size)
{
	mono_debug_open_image (image, raw_contents, size);
}
Exemple #7
0
MonoDebugHandle *
mono_debug_get_handle (MonoImage *image)
{
    return mono_debug_open_image (image, NULL, 0);
}