aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/linux-loongarch-low.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver/linux-loongarch-low.cc')
-rw-r--r--gdbserver/linux-loongarch-low.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdbserver/linux-loongarch-low.cc b/gdbserver/linux-loongarch-low.cc
index 7b81e4b..91826b4 100644
--- a/gdbserver/linux-loongarch-low.cc
+++ b/gdbserver/linux-loongarch-low.cc
@@ -99,6 +99,7 @@ loongarch_fill_gregset (struct regcache *regcache, void *buf)
for (i = 1; i < 32; i++)
collect_register (regcache, i, *regset + i);
+ collect_register (regcache, LOONGARCH_ORIG_A0_REGNUM, *regset + LOONGARCH_ORIG_A0_REGNUM);
collect_register (regcache, LOONGARCH_PC_REGNUM, *regset + LOONGARCH_PC_REGNUM);
collect_register (regcache, LOONGARCH_BADV_REGNUM, *regset + LOONGARCH_BADV_REGNUM);
}
@@ -114,6 +115,7 @@ loongarch_store_gregset (struct regcache *regcache, const void *buf)
supply_register_zeroed (regcache, 0);
for (i = 1; i < 32; i++)
supply_register (regcache, i, *regset + i);
+ supply_register (regcache, LOONGARCH_ORIG_A0_REGNUM, *regset + LOONGARCH_ORIG_A0_REGNUM);
supply_register (regcache, LOONGARCH_PC_REGNUM, *regset + LOONGARCH_PC_REGNUM);
supply_register (regcache, LOONGARCH_BADV_REGNUM, *regset + LOONGARCH_BADV_REGNUM);
}