Commit f2437c2b authored by Vincent Povirk's avatar Vincent Povirk Committed by Alexandre Julliard

mscoree: Add support for tracing the entry point assembly.

parent 6b194615
...@@ -1073,6 +1073,8 @@ __int32 WINAPI _CorExeMain(void) ...@@ -1073,6 +1073,8 @@ __int32 WINAPI _CorExeMain(void)
if (assembly) if (assembly)
{ {
host->mono->mono_trace_set_assembly(assembly);
exit_code = host->mono->mono_jit_exec(domain, assembly, argc, argv); exit_code = host->mono->mono_jit_exec(domain, assembly, argc, argv);
} }
else else
......
...@@ -207,6 +207,7 @@ static HRESULT load_mono(CLRRuntimeInfo *This, loaded_mono **result) ...@@ -207,6 +207,7 @@ static HRESULT load_mono(CLRRuntimeInfo *This, loaded_mono **result)
LOAD_MONO_FUNCTION(mono_stringify_assembly_name); LOAD_MONO_FUNCTION(mono_stringify_assembly_name);
LOAD_MONO_FUNCTION(mono_string_new); LOAD_MONO_FUNCTION(mono_string_new);
LOAD_MONO_FUNCTION(mono_thread_attach); LOAD_MONO_FUNCTION(mono_thread_attach);
LOAD_MONO_FUNCTION(mono_trace_set_assembly);
/* GLib imports obsoleted by the 2.0 ABI */ /* GLib imports obsoleted by the 2.0 ABI */
if (This->mono_abi_version == 1) if (This->mono_abi_version == 1)
......
...@@ -175,6 +175,7 @@ struct loaded_mono ...@@ -175,6 +175,7 @@ struct loaded_mono
void (CDECL *mono_thread_pool_cleanup)(void); void (CDECL *mono_thread_pool_cleanup)(void);
void (CDECL *mono_thread_suspend_all_other_threads)(void); void (CDECL *mono_thread_suspend_all_other_threads)(void);
void (CDECL *mono_threads_set_shutting_down)(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); MonoString* (CDECL *mono_string_new)(MonoDomain *domain, const char *str);
MonoThread* (CDECL *mono_thread_attach)(MonoDomain *domain); MonoThread* (CDECL *mono_thread_attach)(MonoDomain *domain);
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment