commit | 8cf61a33bba791c38e1b2f6cf2f276d052a1f17e | [log] [tgz] |
---|---|---|
author | Andrew Burgess <aburgess@redhat.com> | Tue Aug 09 12:10:03 2022 +0100 |
committer | Andrew Burgess <aburgess@redhat.com> | Tue Aug 09 12:12:35 2022 +0100 |
tree | 2a7e1ab33d915da1c2c89ad0c871dcdf8edaf0df | |
parent | 298d6e70a89a156e43d327c6c2c6efe08911d4f0 [diff] |
gdb/riscv: use register name enum values in riscv-linux-nat.c There were a few places where we were using integer values rather than the RISCV_*_REGNUM constants defined in riscv-tdep.h. This commit replaces 0 with RISCV_ZERO_REGNUM and 32 with RISCV_PC_REGNUM in a few places. There should be no user visible changes after this commit.