diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-19 13:10:42 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-19 13:10:42 (GMT) |
commit | 0a228fb2310761c3c620bd7ae40610e091f6c5b7 (patch) | |
tree | ae444fb516a5e856c64c610607a64a4380b88398 | |
parent | b137bd32940c08f39e9e61c9ec3be2e18c1b93cd (diff) |
Called the FP and IP ARMv7 registers by their name.
-rw-r--r-- | plugins/arm/v7/register.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/arm/v7/register.c b/plugins/arm/v7/register.c index c2e15b0..1d7a1ed 100644 --- a/plugins/arm/v7/register.c +++ b/plugins/arm/v7/register.c @@ -202,9 +202,15 @@ static void g_armv7_register_print(const GArmV7Register *reg, GBufferLine *line, switch (G_ARM_REGISTER(reg)->index) { - case 0 ... 12: + case 0 ... 10: klen = snprintf(key, MAX_REGNAME_LEN, "r%hhu", G_ARM_REGISTER(reg)->index); break; + case 11: + klen = snprintf(key, MAX_REGNAME_LEN, "fp"); + break; + case 12: + klen = snprintf(key, MAX_REGNAME_LEN, "ip"); + break; case 13: klen = snprintf(key, MAX_REGNAME_LEN, "sp"); break; |