diff options
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/xtensa-linux-tdep.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 18a2dbb..b0971d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-01-13 Max Filippov <jcmvbkbc@gmail.com> + + * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update + tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and + set_gdbarch_num_pseudo_regs. + 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be> * cli/cli-style.h (class cli_style_option): <add_setshow_commands> diff --git a/gdb/xtensa-linux-tdep.c b/gdb/xtensa-linux-tdep.c index 1764b95..796143c 100644 --- a/gdb/xtensa-linux-tdep.c +++ b/gdb/xtensa-linux-tdep.c @@ -101,7 +101,13 @@ xtensa_linux_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); if (tdep->num_nopriv_regs < tdep->num_regs) - tdep->num_regs = tdep->num_nopriv_regs; + { + tdep->num_pseudo_regs += tdep->num_regs - tdep->num_nopriv_regs; + tdep->num_regs = tdep->num_nopriv_regs; + + set_gdbarch_num_regs (gdbarch, tdep->num_regs); + set_gdbarch_num_pseudo_regs (gdbarch, tdep->num_pseudo_regs); + } linux_init_abi (info, gdbarch); |