Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2018-09-26 17:52:42 +0000
committerEugene Tarassov2018-09-26 17:52:42 +0000
commita9eb5539cb524548f9a95b52504f4cc5a3cd3b80 (patch)
tree7a4449b6e3215ce50ad7f874ca376989815591ca /agent/machine
parent0d9236dafb4eea3c05df556cb414b1f937bc4627 (diff)
downloadorg.eclipse.tcf.agent-a9eb5539cb524548f9a95b52504f4cc5a3cd3b80.tar.gz
org.eclipse.tcf.agent-a9eb5539cb524548f9a95b52504f4cc5a3cd3b80.tar.xz
org.eclipse.tcf.agent-a9eb5539cb524548f9a95b52504f4cc5a3cd3b80.zip
TCF Agent: fixed: MicroBlaze disassembler display 32-bit address when 64-bit is expected
Diffstat (limited to 'agent/machine')
-rw-r--r--agent/machine/microblaze/tcf/disassembler-microblaze.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/agent/machine/microblaze/tcf/disassembler-microblaze.c b/agent/machine/microblaze/tcf/disassembler-microblaze.c
index 97a65d25..b76ca173 100644
--- a/agent/machine/microblaze/tcf/disassembler-microblaze.c
+++ b/agent/machine/microblaze/tcf/disassembler-microblaze.c
@@ -1277,7 +1277,8 @@ static void add_hex_uint64(uint64_t n) {
}
static void add_addr(uint64_t addr) {
- while (buf_pos < 16) add_char(' ');
+ if (!en_64_bit) addr &= 0xffffffff;
+ while (buf_pos < 32) buf[buf_pos++] = ' ';
add_str("; addr=0x");
add_hex_uint64(addr);
#if ENABLE_Symbols
@@ -1421,8 +1422,6 @@ static int disassemble_instruction(void) {
else {
addr = sext16(instr_imm);
}
- if (!en_64_bit) addr &= 0xffffffff;
- while (buf_pos < 32) buf[buf_pos++] = ' ';
add_addr(addr);
}
}
@@ -1444,8 +1443,6 @@ static int disassemble_instruction(void) {
addr = sext16(instr_imm);
}
if ((instruction_info[instr_op].flags & F_ABS) == 0) addr += ctx_addr;
- if (!en_64_bit) addr &= 0xffffffff;
- while (buf_pos < 32) buf[buf_pos++] = ' ';
add_addr(addr);
}
}

Back to the top