]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* target.c (default_region_size_ok_for_hw_watchpoint): Compare
authorKevin Buettner <kevinb@redhat.com>
Mon, 19 Jan 2004 16:49:35 +0000 (16:49 +0000)
committerKevin Buettner <kevinb@redhat.com>
Mon, 19 Jan 2004 16:49:35 +0000 (16:49 +0000)
the region size against the size of a pointer, not the size of
a register as given by DEPRECATED_REGISTER_SIZE.

gdb/ChangeLog
gdb/target.c

index b03858af2fb366caa15bccf6b1296fd7bf74edce..489443202afa1bd39e125017ce427d54a6fac59d 100644 (file)
@@ -1,3 +1,9 @@
+2004-01-19  Kevin Buettner  <kevinb@redhat.com>
+
+       * target.c (default_region_size_ok_for_hw_watchpoint): Compare
+       the region size against the size of a pointer, not the size of
+       a register as given by DEPRECATED_REGISTER_SIZE.
+
 2004-01-19  Andrew Cagney  <cagney@redhat.com>
 
        * tui/tui-regs.h: Include "tui-data.h".
index 18b5a77e1b903b6edda8d68953ed0587df4563c4..ff47ac13bf711e54bfd8d31b478e22451032f0ac 100644 (file)
@@ -1360,7 +1360,7 @@ find_default_create_inferior (char *exec_file, char *allargs, char **env)
 static int
 default_region_size_ok_for_hw_watchpoint (int byte_count)
 {
-  return (byte_count <= DEPRECATED_REGISTER_SIZE);
+  return (byte_count <= TYPE_LENGTH (builtin_type_void_data_ptr));
 }
 
 static int