gdbserver/linux-low: turn 'get_ipa_tdesc_idx' into a method
[deliverable/binutils-gdb.git] / gdbserver / linux-x86-low.cc
index 2837994653de7de51e6007a0057ecd4a002d4b30..67690914f8ccd5ec625a4d8d6f9e8d39b056546b 100644 (file)
@@ -124,6 +124,8 @@ public:
 
   struct emit_ops *emit_ops () override;
 
+  int get_ipa_tdesc_idx () override;
+
 protected:
 
   void low_arch_setup () override;
@@ -2974,8 +2976,8 @@ x86_target::low_supports_range_stepping ()
   return true;
 }
 
-static int
-x86_get_ipa_tdesc_idx (void)
+int
+x86_target::get_ipa_tdesc_idx ()
 {
   struct regcache *regcache = get_thread_regcache (current_thread, 0);
   const struct target_desc *tdesc = regcache->tdesc;
@@ -2995,7 +2997,6 @@ x86_get_ipa_tdesc_idx (void)
 
 struct linux_target_ops the_low_target =
 {
-  x86_get_ipa_tdesc_idx,
 };
 
 /* The linux target ops object.  */
This page took 0.023304 seconds and 4 git commands to generate.