X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdbserver%2Flinux-ppc-low.cc;h=337d555aee724279b540c3a5ab85d4945da34176;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=5c6930751e19ee12d5406f7ddb4616625c91d128;hpb=b31cdfa69f4adfc4760da1480c900f5c27421d43;p=deliverable%2Fbinutils-gdb.git diff --git a/gdbserver/linux-ppc-low.cc b/gdbserver/linux-ppc-low.cc index 5c6930751e..337d555aee 100644 --- a/gdbserver/linux-ppc-low.cc +++ b/gdbserver/linux-ppc-low.cc @@ -79,6 +79,8 @@ public: struct emit_ops *emit_ops () override; + int get_ipa_tdesc_idx () override; + protected: void low_arch_setup () override; @@ -3392,10 +3394,10 @@ ppc_target::emit_ops () return &ppc_emit_ops_impl; } -/* Implementation of linux_target_ops method "get_ipa_tdesc_idx". */ +/* Implementation of target ops method "get_ipa_tdesc_idx". */ -static int -ppc_get_ipa_tdesc_idx (void) +int +ppc_target::get_ipa_tdesc_idx () { struct regcache *regcache = get_thread_regcache (current_thread, 0); const struct target_desc *tdesc = regcache->tdesc; @@ -3445,11 +3447,6 @@ ppc_get_ipa_tdesc_idx (void) return 0; } -struct linux_target_ops the_low_target = { - NULL, /* get_syscall_trapinfo */ - ppc_get_ipa_tdesc_idx, -}; - /* The linux target ops object. */ linux_process_target *the_linux_target = &the_ppc_target;