gdbserver: turn target op 'get_ipa_tdesc_idx' into a method
[deliverable/binutils-gdb.git] / gdbserver / target.h
index 21b6bace68161f16bbcc3d890bc80b54ede45199..f6976303ee0a389ec6b0766272ebdf01dec23ab9 100644 (file)
@@ -70,9 +70,6 @@ class process_target;
    shared code.  */
 struct process_stratum_target
 {
-  /* Return tdesc index for IPA.  */
-  int (*get_ipa_tdesc_idx) (void);
-
   /* The object that will gradually replace this struct.  */
   process_target *pt;
 };
@@ -504,6 +501,9 @@ public:
 
   /* Return true if the target supports catch syscall.  */
   virtual bool supports_catch_syscall ();
+
+  /* Return tdesc index for IPA.  */
+  virtual int get_ipa_tdesc_idx ();
 };
 
 extern process_stratum_target *the_target;
@@ -561,8 +561,7 @@ int kill_inferior (process_info *proc);
   the_target->pt->supports_catch_syscall ()
 
 #define target_get_ipa_tdesc_idx()                     \
-  (the_target->get_ipa_tdesc_idx                       \
-   ? (*the_target->get_ipa_tdesc_idx) () : 0)
+  the_target->pt->get_ipa_tdesc_idx ()
 
 #define target_supports_tracepoints()                  \
   the_target->pt->supports_tracepoints ()
This page took 0.055519 seconds and 4 git commands to generate.