mscoree: Add support for tracing the entry point assembly.

This commit is contained in:
Vincent Povirk 2012-09-04 11:32:00 -05:00 committed by Alexandre Julliard
parent 6b19461548
commit f2437c2b32
3 changed files with 4 additions and 0 deletions

View file

@ -1073,6 +1073,8 @@ __int32 WINAPI _CorExeMain(void)
if (assembly)
{
host->mono->mono_trace_set_assembly(assembly);
exit_code = host->mono->mono_jit_exec(domain, assembly, argc, argv);
}
else

View file

@ -207,6 +207,7 @@ static HRESULT load_mono(CLRRuntimeInfo *This, loaded_mono **result)
LOAD_MONO_FUNCTION(mono_stringify_assembly_name);
LOAD_MONO_FUNCTION(mono_string_new);
LOAD_MONO_FUNCTION(mono_thread_attach);
LOAD_MONO_FUNCTION(mono_trace_set_assembly);
/* GLib imports obsoleted by the 2.0 ABI */
if (This->mono_abi_version == 1)

View file

@ -175,6 +175,7 @@ struct loaded_mono
void (CDECL *mono_thread_pool_cleanup)(void);
void (CDECL *mono_thread_suspend_all_other_threads)(void);
void (CDECL *mono_threads_set_shutting_down)(void);
void (CDECL *mono_trace_set_assembly)(MonoAssembly *assembly);
MonoString* (CDECL *mono_string_new)(MonoDomain *domain, const char *str);
MonoThread* (CDECL *mono_thread_attach)(MonoDomain *domain);
};