summaryrefslogtreecommitdiff
path: root/plugins/arm
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-05-19 13:10:42 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-05-19 13:10:42 (GMT)
commit0a228fb2310761c3c620bd7ae40610e091f6c5b7 (patch)
treeae444fb516a5e856c64c610607a64a4380b88398 /plugins/arm
parentb137bd32940c08f39e9e61c9ec3be2e18c1b93cd (diff)
Called the FP and IP ARMv7 registers by their name.
Diffstat (limited to 'plugins/arm')
-rw-r--r--plugins/arm/v7/register.c8
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;