2010-04-10 Zoltan Varga <vargaz@gmail.com>
authorZoltan Varga <vargaz@gmail.com>
Fri, 9 Apr 2010 22:55:34 +0000 (22:55 -0000)
committerZoltan Varga <vargaz@gmail.com>
Fri, 9 Apr 2010 22:55:34 +0000 (22:55 -0000)
* debugger-agent.c (thread_commands): Add a GET_ID command to get the
MonoInternalThread belonging to the thread.

svn path=/trunk/mono/; revision=155173

mono/mini/ChangeLog
mono/mini/debugger-agent.c

index e42201b6a8f41d8ce5c199cc31d37bbe6769936a..72d8aeba370483df3eae70cb1ae38d609e528191 100755 (executable)
@@ -1,3 +1,7 @@
+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>
 
index 03d0f6d3d55f13363a4466cf50f133714efe7f6b..de2163e45bebb90863bc2ffa71df7851cedf9eff 100644 (file)
@@ -342,7 +342,8 @@ typedef enum {
        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 {
@@ -6072,6 +6073,9 @@ thread_commands (int command, guint8 *p, guint8 *end, Buffer *buf)
        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;
        }