aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/linux-nios2-low.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gdbserver/linux-nios2-low.cc')
-rw-r--r--gdbserver/linux-nios2-low.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdbserver/linux-nios2-low.cc b/gdbserver/linux-nios2-low.cc
index 1b68091..2e19b8d 100644
--- a/gdbserver/linux-nios2-low.cc
+++ b/gdbserver/linux-nios2-low.cc
@@ -37,6 +37,8 @@ class nios2_target : public linux_process_target
{
public:
+ const regs_info *get_regs_info () override;
+
protected:
void low_arch_setup () override;
@@ -236,22 +238,21 @@ static struct usrregs_info nios2_usrregs_info =
nios2_regmap,
};
-static struct regs_info regs_info =
+static struct regs_info myregs_info =
{
NULL, /* regset_bitmap */
&nios2_usrregs_info,
&nios2_regsets_info
};
-static const struct regs_info *
-nios2_regs_info (void)
+const regs_info *
+nios2_target::get_regs_info ()
{
- return &regs_info;
+ return &myregs_info;
}
struct linux_target_ops the_low_target =
{
- nios2_regs_info,
nios2_cannot_fetch_register,
nios2_cannot_store_register,
NULL,