riscvarchive / riscv-binutils-gdb

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

Could/should GDB/MI -data-list-register-names return ABI rather than canonical names? #72

Open TommyMurphyTM1234 opened 7 years ago

TommyMurphyTM1234 commented 7 years ago

See also:

As the subject says - could/should GDB/MI -data-list-register-names return ABI rather than canonical names for some or all of integer regs. FP regs and CSRs - either automatically or as a configurable option?

Are there situations in which some users want to see "raw" canonical names? Are there situations in which other ABIs/register naming conventions might be used? Shouldn't GDB/MI -data-list-register-names and the likes of info registers/info all-registers generate consistent output (they don't right now)? If ABI names are used then might it also be necessary to cater for targets adhering to different versions of the (draft) priv spec - e.g. 1.9, 1.9.1, 1.10 and provide a command to tell GDB which priv spec should apply? Are there other issues to consider?

If you need any more info please let me know. Thanks Tommy

ilg-ul commented 6 years ago

https://github.com/riscv/riscv-openocd/issues/93