summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-12-06 15:20:28 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-12-06 15:22:38 +0100
commit99835fa38b9dad3eb07a8029d51adc8edad59406 (patch)
treeca17e38e309d11343f15750ec9e17fd2a169b2e5
parent6eefc418dcfc51651da4917d6424b59eaa9770f5 (diff)
downloadrockbox-99835fa38b9dad3eb07a8029d51adc8edad59406.tar.gz
rockbox-99835fa38b9dad3eb07a8029d51adc8edad59406.tar.bz2
rockbox-99835fa38b9dad3eb07a8029d51adc8edad59406.zip
imxtools/sbtools/sb1: fix parsing/debug bug about jump/call arguments
Change-Id: Ib406cfc03ced6c8689ed467c154d6a7447a34e5c
-rw-r--r--utils/imxtools/sbtools/sb1.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/imxtools/sbtools/sb1.c b/utils/imxtools/sbtools/sb1.c
index 06e29c4ecb..6bc4dd8cfa 100644
--- a/utils/imxtools/sbtools/sb1.c
+++ b/utils/imxtools/sbtools/sb1.c
@@ -563,7 +563,7 @@ struct sb1_file_t *sb1_read_memory(void *_buf, size_t filesize, void *u,
printf(YELLOW, " Addr:");
printf(RED, " %#x\n", cmd->addr);
printf(YELLOW, " Argument:");
- printf(RED, " %#x\n", inst.pattern);
+ printf(RED, " %#x\n", inst.argument);
break;
default:
printf(GREY, "WARNING: unknown SB command !\n");
@@ -652,7 +652,9 @@ void sb1_dump(struct sb1_file_t *file, void *u, generic_printf_t cprintf)
printf(SEP, " | ");
printf(TEXT3, "crit=%d", inst->critical);
printf(SEP, " | ");
- printf(TEXT, "addr=0x%08x\n", inst->addr);
+ printf(TEXT, "addr=0x%08x", inst->addr);
+ printf(SEP, " | ");
+ printf(TEXT2, "arg=0x%08x\n", inst->argument);
break;
case SB1_INST_LOAD:
printf(HEADER, "LOAD");