--- /dev/null
+package lejos.nxt.debug;\r
+\r
+import java.util.*;\r
+import lejos.nxt.*;\r
+/**\r
+ * Provides a Java view of the VM thread structure.\r
+ * @author andy\r
+ */\r
+public class DebugThread\r
+{\r
+ // NOTE This is very very iffy. This class does not really "exist"\r
+ // The real class type is thread. However to make the private contents\r
+ // availabe without having to change the thread class or add things to\r
+ // java.lang, we cheat. Basically the firmware hands us a thread ref.\r
+ // we pretend it is a DebugThread... Things seem to work. Do not add\r
+ // methods or anything else to this class unless you really know what\r
+ // you are doing!\r
+ public DebugThread nextThread;\r
+ public Object waitingOn;\r
+ public int sleepUntil;\r
+ public int[] stackFrameArray;\r
+ public int[] stackArray;\r
+ public byte stackFrameArraySize;\r
+ public byte monitorCount;\r
+ public byte threadId;\r
+ public byte state;\r
+ public byte priority;\r
+ public byte interrupted;\r
+ public byte daemon;\r
+}\r