gdb: make the pre-defined register groups const

Convert the 7 global, pre-defined, register groups const, and fix the
fall out (a minor tweak required in riscv-tdep.c).

There should be no user visible changes after this commit.
This commit is contained in:
Andrew Burgess
2022-03-31 16:36:21 +01:00
parent e7fe101149
commit 3a471c03b0
3 changed files with 22 additions and 22 deletions

View File

@ -1369,7 +1369,7 @@ riscv_print_registers_info (struct gdbarch *gdbarch,
}
else
{
struct reggroup *reggroup;
const struct reggroup *reggroup;
if (print_all)
reggroup = all_reggroup;