* debugger-agent.c (thread_commands): Add a GET_ID command to get the
MonoInternalThread belonging to the thread.
svn path=/trunk/mono/; revision=155173
+2010-04-10 Zoltan Varga <vargaz@gmail.com>
+
+ * debugger-agent.c (thread_commands): Add a GET_ID command to get the
+ MonoInternalThread belonging to the thread.
Fri Apr 9 15:28:01 CEST 2010 Paolo Molaro <lupus@ximian.com>
CMD_THREAD_GET_FRAME_INFO = 1,
CMD_THREAD_GET_NAME = 2,
CMD_THREAD_GET_STATE = 3,
- CMD_THREAD_GET_INFO = 4
+ CMD_THREAD_GET_INFO = 4,
+ CMD_THREAD_GET_ID = 5
} CmdThread;
typedef enum {
case CMD_THREAD_GET_INFO:
buffer_add_byte (buf, thread->threadpool_thread);
break;
+ case CMD_THREAD_GET_ID:
+ buffer_add_long (buf, (guint64)thread);
+ break;
default:
return ERR_NOT_IMPLEMENTED;
}