Add the target_ops needed for software breakpoints in GDBServer.
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-s390-low.c
index 8a0a6891433ec49f4fe9ea1098d9db51de7a636f..2ba12210c62748b5b74a9d73b16ef3cb84963025 100644 (file)
@@ -394,9 +394,18 @@ static struct regset_info s390_regsets[] = {
 };
 
 
-static const unsigned char s390_breakpoint[] = { 0, 1 };
+static const gdb_byte s390_breakpoint[] = { 0, 1 };
 #define s390_breakpoint_len 2
 
+/* Implementation of linux_target_ops method "sw_breakpoint_from_kind".  */
+
+static const gdb_byte *
+s390_sw_breakpoint_from_kind (int kind, int *size)
+{
+  *size = s390_breakpoint_len;
+  return s390_breakpoint;
+}
+
 static CORE_ADDR
 s390_get_pc (struct regcache *regcache)
 {
@@ -665,8 +674,8 @@ struct linux_target_ops the_low_target = {
   NULL, /* fetch_register */
   s390_get_pc,
   s390_set_pc,
-  s390_breakpoint,
-  s390_breakpoint_len,
+  NULL, /* breakpoint_kind_from_pc */
+  s390_sw_breakpoint_from_kind,
   NULL,
   s390_breakpoint_len,
   s390_breakpoint_at,
This page took 0.025178 seconds and 4 git commands to generate.