Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created June 9, 2011 01:46
Show Gist options
  • Save kumpera/1015868 to your computer and use it in GitHub Desktop.
Save kumpera/1015868 to your computer and use it in GitHub Desktop.
diff --git a/mono/utils/mach-support-arm.c b/mono/utils/mach-support-arm.c
index 51a07bd..f5824be 100644
--- a/mono/utils/mach-support-arm.c
+++ b/mono/utils/mach-support-arm.c
@@ -21,7 +21,7 @@ mono_mach_arch_get_ip (thread_state_t state)
{
arm_thread_state_t *arch_state = (arm_thread_state_t *) state;
- return (void *) arch_state->__eip;
+ return (void *) arch_state->__pc;
}
void *
@@ -29,7 +29,7 @@ mono_mach_arch_get_sp (thread_state_t state)
{
arm_thread_state_t *arch_state = (arm_thread_state_t *) state;
- return (void *) arch_state->__esp;
+ return (void *) arch_state->__sp;
}
int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment