CORE_ADDR low_get_pc (regcache *regcache) override;
void low_set_pc (regcache *regcache, CORE_ADDR newpc) override;
+
+ bool low_breakpoint_at (CORE_ADDR pc) override;
};
/* The singleton target ops object. */
return (const gdb_byte *) &ppc_breakpoint;
}
-static int
-ppc_breakpoint_at (CORE_ADDR where)
+bool
+ppc_target::low_breakpoint_at (CORE_ADDR where)
{
unsigned int insn;
- the_target->read_memory (where, (unsigned char *) &insn, 4);
+ read_memory (where, (unsigned char *) &insn, 4);
if (insn == ppc_breakpoint)
- return 1;
+ return true;
/* If necessary, recognize more trap instructions here. GDB only uses
the one. */
- return 0;
+ return false;
}
/* Implement supports_z_point_type target-ops.
}
struct linux_target_ops the_low_target = {
- ppc_breakpoint_at,
ppc_supports_z_point_type,
ppc_insert_point,
ppc_remove_point,