From: Kevin Buettner Date: Mon, 19 Jan 2004 16:49:35 +0000 (+0000) Subject: * target.c (default_region_size_ok_for_hw_watchpoint): Compare X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=437b434f9a2af5ded386e3ad2ed8438e46899618;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b03858af2fb..489443202af 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-01-19 Kevin Buettner + + * 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 * tui/tui-regs.h: Include "tui-data.h". 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