diff options
author | Kevin Buettner <kevinb@redhat.com> | 2004-01-19 16:49:35 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2004-01-19 16:49:35 +0000 |
commit | b31828f920b3d2f1890d67a95a5b89db3e907989 (patch) | |
tree | b7b4e42083fb416ec7ba93e5e954e628c1500f2d /gdb/target.c | |
parent | 6c1f0785338c0381f0e092a89ea7a18fde134866 (diff) | |
download | gdb-b31828f920b3d2f1890d67a95a5b89db3e907989.tar.gz |
* 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.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index 18b5a77e1b9..ff47ac13bf7 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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 |