[Mono-dev] runtime dbg library API proposal/impl

Paolo Molaro lupus at ximian.com
Wed Dec 5 12:58:19 EST 2007


Hi.
The attached patch implements part of the debugging library
the runtime will provide for use in the debugger, to reduce
the dependencies the debugger has on the runtime internals.
Note this is very basic for now and also includes stuff the debugger
won't use, but that will be essential to allow testing the library
during the runtime build/test cycle.

I'd like advice especially for the case of handling threads:
should we have a mono_dbg_target_set_thread (target, thread_id)
interface and set/get_context calls without the additional thread_id
argument or use something like in the header file below?
I also intend to make stop/continue work on individual threads,
keeping the existing interface for stopping all the threads.

By tomorrow I'll try to expand the API to include helper
functions to access some of the runtime data structures
(like MonoClass' name, namespace, parent fields etc).

Also, as discussed with Martin, the read/write word functions will be
later changed to optionally use a callback instead of using ptrace
directly (so that the debugger could provide a callback that reads data
from core files, for example).

It would be also good if people familiar with windows debugging could
make sure the API is implementable there as well.

Comments welcome.
Thanks!

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better
-------------- next part --------------
A non-text attachment was scrubbed...
Name: runtime-debug-lib.diff
Type: text/x-diff
Size: 12978 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071205/79c75e4d/attachment.bin 


More information about the Mono-devel-list mailing list