Skip to content
This repository has been archived by the owner on Aug 17, 2022. It is now read-only.

Commit

Permalink
Reset registers to 0, not -1
Browse files Browse the repository at this point in the history
They're unsigned, so -1 isn't correct.
  • Loading branch information
palmer-dabbelt committed Nov 14, 2016
1 parent f0ded12 commit 73656f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdb/riscv-tdep.c
Expand Up @@ -817,7 +817,7 @@ reset_saved_regs (struct gdbarch *gdbarch, struct riscv_frame_cache *this_cache)
return;

for (i = 0; i < num_regs; ++i)
this_cache->saved_regs[i].addr = -1;
this_cache->saved_regs[i].addr = 0;
}

static CORE_ADDR
Expand Down

0 comments on commit 73656f2

Please sign in to comment.