2003-01-22 Martin Baulig <martin@ximian.com>
authorMartin Baulig <martin@novell.com>
Wed, 22 Jan 2003 12:16:53 +0000 (12:16 -0000)
committerMartin Baulig <martin@novell.com>
Wed, 22 Jan 2003 12:16:53 +0000 (12:16 -0000)
commitb71d3cacdc806c42226261002c00fc666794fea3
tree6a5b0cdb8f9fe01e4e6812f7ef6b32dbc6edd16b
parent3064d4052d9e854516c5614290ee849a6e98cdc4
2003-01-22  Martin Baulig  <martin@ximian.com>

* debug.c: Reverted Gonzalo's last change since it is wrong.
We're also using the debugging code on Windows, for instance the
stabs stuff when running in gdb.  I hope this code still builds on
Windows; if not, we need to fix this.
Moved all the mono debugger support code into the debugger itself;
when debugging a managed application, the debugger new launches a
small unmanaged wrapper application which contains this stuff.

* debug.h (MonoDebuggerIOLayer): New public typedef; this is just
initialized to an array of function pointers to the io-layer
function; they don't seem to be public in the `libmono' library.
(mono_debugger_event): New public function.  Sends the debugger an
event if we're running in the Mono Debugger and does nothing otherwise.

* mono.c: Don't initialize the Mono Debugger here.

* jit.c (mono_debug_insert_breakpoint): Removed, this isn't used anymore.
(mono_thread_start_cb, mono_thread_attach_cb): Call
mono_debugger_event() to send the debugger a callback.

svn path=/trunk/mono/; revision=10807
mono/jit/ChangeLog
mono/jit/debug.c
mono/jit/debug.h
mono/jit/jit.c
mono/jit/mono.c