Vincent Povirk : mscoree: Add support for tracing the entry point assembly.

Alexandre Julliard julliard at winehq.org
Wed Sep 5 15:36:45 CDT 2012


Module: wine
Branch: master
Commit: f2437c2b328ca4061cfcb5615a3e96073bf109f5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f2437c2b328ca4061cfcb5615a3e96073bf109f5

Author: Vincent Povirk <vincent at codeweavers.com>
Date:   Tue Sep  4 11:32:00 2012 -0500

mscoree: Add support for tracing the entry point assembly.

---

 dlls/mscoree/corruntimehost.c  |    2 ++
 dlls/mscoree/metahost.c        |    1 +
 dlls/mscoree/mscoree_private.h |    1 +
 3 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/mscoree/corruntimehost.c b/dlls/mscoree/corruntimehost.c
index ffc204d..ecefe75 100644
--- a/dlls/mscoree/corruntimehost.c
+++ b/dlls/mscoree/corruntimehost.c
@@ -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
diff --git a/dlls/mscoree/metahost.c b/dlls/mscoree/metahost.c
index 8417344..66dde5d 100644
--- a/dlls/mscoree/metahost.c
+++ b/dlls/mscoree/metahost.c
@@ -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)
diff --git a/dlls/mscoree/mscoree_private.h b/dlls/mscoree/mscoree_private.h
index 7266687..f7e9c11 100644
--- a/dlls/mscoree/mscoree_private.h
+++ b/dlls/mscoree/mscoree_private.h
@@ -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);
 };




More information about the wine-cvs mailing list