dbghelp: Implement arm_fetch_regname.

This commit is contained in:
André Hentschel 2011-04-15 19:34:11 +02:00 committed by Alexandre Julliard
parent becb336dc7
commit 1bae92b9bb
1 changed files with 21 additions and 0 deletions

View File

@ -69,6 +69,27 @@ static void* arm_fetch_context_reg(CONTEXT* ctx, unsigned regno, unsigned* size)
static const char* arm_fetch_regname(unsigned regno)
{
switch (regno)
{
case CV_ARM_R0 + 0: return "r0";
case CV_ARM_R0 + 1: return "r1";
case CV_ARM_R0 + 2: return "r2";
case CV_ARM_R0 + 3: return "r3";
case CV_ARM_R0 + 4: return "r4";
case CV_ARM_R0 + 5: return "r5";
case CV_ARM_R0 + 6: return "r6";
case CV_ARM_R0 + 7: return "r7";
case CV_ARM_R0 + 8: return "r8";
case CV_ARM_R0 + 9: return "r9";
case CV_ARM_R0 + 10: return "r10";
case CV_ARM_R0 + 11: return "r11";
case CV_ARM_R0 + 12: return "r12";
case CV_ARM_SP: return "sp";
case CV_ARM_LR: return "lr";
case CV_ARM_PC: return "pc";
case CV_ARM_CPSR: return "cpsr";
}
FIXME("Unknown register %x\n", regno);
return NULL;
}