2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
[deliverable/binutils-gdb.git] / gdb / gdbserver / i386-low.c
index 3fdf563c77eace9fd85289a3d02cb01c0c394f9f..494b8087f2aecb985952e2250fb38d19fbd868c0 100644 (file)
@@ -219,7 +219,7 @@ i386_length_and_rw_bits (int len, enum target_hw_bp_type type)
        rw = DR_RW_WRITE;
        break;
       case hw_read:
-       /* The i386 doesn't support data-read watchpoints.  */
+       fatal ("The i386 doesn't support data-read watchpoints.\n");
       case hw_access:
        rw = DR_RW_READ;
        break;
@@ -458,6 +458,9 @@ i386_low_insert_watchpoint (struct i386_debug_reg_state *state,
   int retval;
   enum target_hw_bp_type type = Z_packet_to_hw_type (type_from_packet);
 
+  if (type == hw_read)
+    return 1; /* unsupported */
+
   if (((len != 1 && len != 2 && len != 4)
        && !(TARGET_HAS_DR_LEN_8 && len == 8))
       || addr % len != 0)
This page took 0.025154 seconds and 4 git commands to generate.