bool supports_z_point_type (char z_type) override;
+
+ void low_collect_ptrace_register (regcache *regcache, int regno,
+ char *buf) override;
+
+ void low_supply_ptrace_register (regcache *regcache, int regno,
+ const char *buf) override;
+
+ bool supports_tracepoints () override;
+
protected:
void low_arch_setup () override;
return false;
}
-static void
-ppc_collect_ptrace_register (struct regcache *regcache, int regno, char *buf)
+void
+ppc_target::low_collect_ptrace_register (regcache *regcache, int regno,
+ char *buf)
{
memset (buf, 0, sizeof (long));
perror_with_name ("Unexpected byte order");
}
-static void
-ppc_supply_ptrace_register (struct regcache *regcache,
- int regno, const char *buf)
+void
+ppc_target::low_supply_ptrace_register (regcache *regcache, int regno,
+ const char *buf)
{
if (__BYTE_ORDER == __LITTLE_ENDIAN)
{
{
int i;
+ ppc_target *my_ppc_target = (ppc_target *) the_linux_target;
+
for (i = 0; i < 32; i++)
- ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
+ my_ppc_target->low_collect_ptrace_register (regcache, i,
+ (char *) buf + ppc_regmap[i]);
for (i = 64; i < 70; i++)
- ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
+ my_ppc_target->low_collect_ptrace_register (regcache, i,
+ (char *) buf + ppc_regmap[i]);
for (i = 71; i < 73; i++)
- ppc_collect_ptrace_register (regcache, i, (char *) buf + ppc_regmap[i]);
+ my_ppc_target->low_collect_ptrace_register (regcache, i,
+ (char *) buf + ppc_regmap[i]);
}
/* Program Priority Register regset fill function. */
}
}
-/* Implementation of linux_target_ops method "supports_tracepoints". */
+/* Implementation of target ops method "supports_tracepoints". */
-static int
-ppc_supports_tracepoints (void)
+bool
+ppc_target::supports_tracepoints ()
{
- return 1;
+ return true;
}
/* Get the thread area address. This is used to recognize which
}
struct linux_target_ops the_low_target = {
- ppc_collect_ptrace_register,
- ppc_supply_ptrace_register,
- NULL, /* siginfo_fixup */
- NULL, /* new_process */
- NULL, /* delete_process */
- NULL, /* new_thread */
- NULL, /* delete_thread */
- NULL, /* new_fork */
- NULL, /* prepare_to_resume */
- NULL, /* process_qsupported */
- ppc_supports_tracepoints,
ppc_get_thread_area,
ppc_install_fast_tracepoint_jump_pad,
ppc_emit_ops,