riscvarchive / riscv-binutils-gdb

RISC-V backports for binutils-gdb. Development is done upstream at the FSF.
GNU General Public License v2.0
148 stars 233 forks source link

RISC-V: Convert CSR dwarf numbers to gdb register numbers. #229

Closed Hsiangkai closed 3 years ago

Hsiangkai commented 3 years ago

Debugger needs to access vector CSR registers vl and vlenb when debugging vector programs. So, gdb needs to be able to convert DWARF numbers of CSR to internal register numbers.