diff options
author | Zoltan Varga <vargaz@gmail.com> | 2010-04-10 02:56:54 +0400 |
---|---|---|
committer | Zoltan Varga <vargaz@gmail.com> | 2010-04-10 02:56:54 +0400 |
commit | c206639c22d77802921b06bb9b47aa17ba767996 (patch) | |
tree | 006558f745bfa48f05460288ea3f060fb5e8b4c6 | |
parent | ab5a3a350688bb4a774d75293dc49cd2db2848b4 (diff) |
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.
svn path=/branches/mono-2-6/mono/; revision=155175
-rw-r--r-- | mono/mini/ChangeLog | 5 | ||||
-rw-r--r-- | mono/mini/debugger-agent.c | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index 3ceea8b72e7..4d880d8b769 100644 --- a/mono/mini/ChangeLog +++ b/mono/mini/ChangeLog @@ -1,3 +1,8 @@ +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. + 2010-04-08 Kornel Pal <kornelpal@gmail.com> * method-to-ir.c (mini_emit_inst_for_method): Fix a typo that caused diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c index fffc2f1c370..7a57bae62b7 100644 --- a/mono/mini/debugger-agent.c +++ b/mono/mini/debugger-agent.c @@ -346,7 +346,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 { @@ -5853,6 +5854,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; } |