X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmini%2Fdebugger-agent.c;h=b625580c1fe4c347fedcc46b41f7473db085cc88;hb=9ab31d021326a0402e23caade187c3b6169a0ec7;hp=102158e4fdab6144dd37a4f8ee8baf089c2d3fc6;hpb=42874b6479cf103ca2e044b95c27a2edbb21d75c;p=mono.git diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c index 102158e4fda..b625580c1fe 100644 --- a/mono/mini/debugger-agent.c +++ b/mono/mini/debugger-agent.c @@ -595,11 +595,6 @@ typedef struct { MonoClass *klass; } EventInfo; -/* Dummy structure used for the profiler callbacks */ -typedef struct { - void* dummy; -} DebuggerProfiler; - typedef struct { guint8 *buf, *p, *end; } Buffer; @@ -700,8 +695,6 @@ static MonoCoopCond debugger_thread_exited_cond; /* Mutex for the cond var above */ static MonoCoopMutex debugger_thread_exited_mutex; -static DebuggerProfiler debugger_profiler; - /* The single step request instance */ static SingleStepReq *ss_req; @@ -999,7 +992,7 @@ mono_debugger_agent_init (void) mono_coop_mutex_init (&debugger_thread_exited_mutex); mono_coop_cond_init (&debugger_thread_exited_cond); - MonoProfilerHandle prof = mono_profiler_install ((MonoProfiler*)&debugger_profiler); + MonoProfilerHandle prof = mono_profiler_create (NULL); mono_profiler_set_runtime_shutdown_end_callback (prof, runtime_shutdown); mono_profiler_set_runtime_initialized_callback (prof, runtime_initialized); mono_profiler_set_domain_loaded_callback (prof, appdomain_load);