gdb/riscv: use register name enum values in riscv-linux-nat.c
authorAndrew Burgess <aburgess@redhat.com>
Tue, 9 Aug 2022 11:10:03 +0000 (12:10 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Tue, 9 Aug 2022 11:12:35 +0000 (12:12 +0100)
commit8cf61a33bba791c38e1b2f6cf2f276d052a1f17e
tree2a7e1ab33d915da1c2c89ad0c871dcdf8edaf0df
parent298d6e70a89a156e43d327c6c2c6efe08911d4f0
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.
gdb/riscv-linux-nat.c