From 1c49c467c0356431b2b788ff89f428cf1a7b44ec Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Sat, 9 Apr 2005 12:34:09 +0000 Subject: [PATCH] 2005-04-09 Zoltan Varga * mini.c (print_method_from_ip): Fix debugging support. svn path=/trunk/mono/; revision=42726 --- mono/mini/ChangeLog | 4 ++++ mono/mini/mini.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog index 6c9fc83cc1d..6fcc50e8861 100644 --- a/mono/mini/ChangeLog +++ b/mono/mini/ChangeLog @@ -1,3 +1,7 @@ +2005-04-09 Zoltan Varga + + * mini.c (print_method_from_ip): Fix debugging support. + 2005-2-1 Massimiliano Mantione * ssapre.c: Fix a subtle bug about availability, and limit SSAPRE diff --git a/mono/mini/mini.c b/mono/mini/mini.c index 2adf047f5b9..f3e3472d2d5 100644 --- a/mono/mini/mini.c +++ b/mono/mini/mini.c @@ -186,7 +186,7 @@ get_method_from_ip (void *ip) return NULL; } method = mono_method_full_name (ji->method, TRUE); - source = mono_debug_source_location_from_address (ji->method, (int) ip, NULL, domain); + source = mono_debug_source_location_from_address (ji->method, (guint32)((guint8*)ip - (guint8*)ji->code_start), NULL, domain); res = g_strdup_printf (" %s + 0x%x (%p %p) [%p - %s]", method, (int)((char*)ip - (char*)ji->code_start), ji->code_start, (char*)ji->code_start + ji->code_size, domain, domain->friendly_name); @@ -211,7 +211,7 @@ print_method_from_ip (void *ip) return; } method = mono_method_full_name (ji->method, TRUE); - source = mono_debug_source_location_from_address (ji->method, (int) ip, NULL, domain); + source = mono_debug_source_location_from_address (ji->method, (guint32)((guint8*)ip - (guint8*)ji->code_start), NULL, domain); g_print ("IP %p at offset 0x%x of method %s (%p %p)[domain %p - %s]\n", ip, (int)((char*)ip - (char*)ji->code_start), method, ji->code_start, (char*)ji->code_start + ji->code_size, domain, domain->friendly_name); -- 2.25.1