diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2009-01-20 16:02:58 +0300 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2009-01-20 16:02:58 +0300 |
commit | 9edf8633ce561c4fdbbf403b3a99abe077853f90 (patch) | |
tree | 7f5c966bb1cac08423eae7a134e51840c3416aa5 | |
parent | 8028df0bdbec80e426ba0776f7fa3e865e64fffb (diff) |
2009-01-20 Rodrigo Kumpera <rkumpera@novell.com>
* mini-exceptions.c (mono_print_thread_dump): Add information
about the thread state using wapi_current_thread_desc.
svn path=/trunk/mono/; revision=123877
-rw-r--r-- | mono/mini/ChangeLog | 5 | ||||
-rw-r--r-- | mono/mini/mini-exceptions.c | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index c4adc6a96c2..3f09f9d898f 100644 --- a/mono/mini/ChangeLog +++ b/mono/mini/ChangeLog @@ -1,3 +1,8 @@ +2009-01-20 Rodrigo Kumpera <rkumpera@novell.com> + + * mini-exceptions.c (mono_print_thread_dump): Add information + about the thread state using wapi_current_thread_desc. + 2009-01-19 Rodrigo Kumpera <rkumpera@novell.com> * basic-simd.cs: Tests for the new constructors. diff --git a/mono/mini/mini-exceptions.c b/mono/mini/mini-exceptions.c index 6430d8c3a48..5cea5237e57 100644 --- a/mono/mini/mini-exceptions.c +++ b/mono/mini/mini-exceptions.c @@ -1491,7 +1491,7 @@ mono_print_thread_dump (void *sigctx) MonoContext ctx; #endif GString* text = g_string_new (0); - char *name; + char *name, *wapi_desc; GError *error = NULL; if (thread->name) { @@ -1503,9 +1503,11 @@ mono_print_thread_dump (void *sigctx) else if (thread->threadpool_thread) g_string_append (text, "\n\"<threadpool thread>\""); else - g_string_append (text, "\n\"\""); + g_string_append (text, "\n\"<unnamed thread>\""); - g_string_append_printf (text, " tid=0x%p this=0x%p:\n", (gpointer)(gsize)thread->tid, thread); + wapi_desc = wapi_current_thread_desc (); + g_string_append_printf (text, " tid=0x%p this=0x%p %s\n", (gpointer)(gsize)thread->tid, thread, wapi_desc); + free (wapi_desc); /* FIXME: */ #if defined(__i386__) || defined(__x86_64__) |