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

Rodrigo Kumpera kumpera at gmail.com
Wed Dec 5 13:44:29 EST 2007


Hey Paolo,

One thing missing are functions to probe the version/capabilities of the
library. Since the idea is to have the debugger use as much of the dbg api
as possible but falling back to the current code in case the lib doesn't
support specific stuff.


Rodrigo



On Dec 5, 2007 3:58 PM, Paolo Molaro <lupus at ximian.com> wrote:

> 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
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071205/fd4370b6/attachment.html 


More information about the Mono-devel-list mailing list