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 | 437b434f9a2af5ded386e3ad2ed8438e46899618 (patch) | |
tree | fab478529bb7466af06a1508ea0762a1b4ef3697 /gdb/target.c | |
parent | 55fb0713929955357385810a187987d919cb9608 (diff) | |
download | gdb-437b434f9a2af5ded386e3ad2ed8438e46899618.zip gdb-437b434f9a2af5ded386e3ad2ed8438e46899618.tar.gz gdb-437b434f9a2af5ded386e3ad2ed8438e46899618.tar.bz2 |
* 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 18b5a77..ff47ac1 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 |