mscoree: Add support for tracing the entry point assembly.
This commit is contained in:
parent
6b19461548
commit
f2437c2b32
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue