[2/10] dbghelp: Implement arm_map_dwarf_register

André Hentschel nerv at dawncrow.de
Fri Apr 15 12:32:30 CDT 2011


I choosed not to use the "switch(regno)" way here, because it's simple and easily to understand that way.
---
 dlls/dbghelp/cpu_arm.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/cpu_arm.c b/dlls/dbghelp/cpu_arm.c
index 4365828..2dd20a0 100644
--- a/dlls/dbghelp/cpu_arm.c
+++ b/dlls/dbghelp/cpu_arm.c
@@ -54,8 +54,11 @@ static BOOL arm_stack_walk(struct cpu_stack_walk* csw, LPSTACKFRAME64 frame, CON
 
 static unsigned arm_map_dwarf_register(unsigned regno)
 {
-    FIXME("not done for ARM\n");
-    return 0;
+    if (regno <= 15) return CV_ARM_R0 + regno;
+    if (regno == 128) return CV_ARM_CPSR;
+
+    FIXME("Don't know how to map register %d\n", regno);
+    return CV_ARM_NOREG;
 }
 
 static void* arm_fetch_context_reg(CONTEXT* ctx, unsigned regno, unsigned* size)
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list