[Mono-list] Embedded Mono queries

Miguel de Icaza miguel@ximian.com
05 Mar 2002 14:00:20 -0500

> 1)  How to link a class's field names to hardware addresses.  The I/O
> drivers will update a common
> memory area with current input data values, and I want to know how to make
> these addresses available

You can use `structs' instead of classes.  And then code them like this:

[StructLayout (LayoutKind.Explicit)]
struct CgSixControl {
	[FieldOffset (0)] int control_register;
	[FieldOffset (4)] int video_mode;
	[FieldOffset (8)] int dma_mapping;

Then you can create pointers to your CgSixControl struct, and just
poking at the values there will go to the right offset.

> 2)  Debugging facilities.  What is available/planned for Mono?  With an
> embedded system, any
> debugging will need to be done remotely, over an an ethernet link.
> Initially, just some form of Watch
> points would be useful, but I would like to know what is proposed in the
> longer term.
> I don't think this is part of ECMA, so is this an area that isn't being
> tackled yet?

Currently we do not have a well defined strategy there, we will have to
investigate this further down the line.  You are free to participate in
the discussion process, or even starting the discussion on what needs to
be done, and what hooks are needed where.

You might want to look first at the Microsoft debugging APIs to have an
idea of what we are in need for.