From ffe5a37e17da959d4c4e43b33f23b9548ac6fb27 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 11 Sep 2008 14:29:21 +0000 Subject: * auxv.c (default_auxv_parse): Use gdbarch_ptr_bit (target_gdbarch) instead of builtin_type_void_data_ptr. * target.c (default_region_ok_for_hw_watchpoint): Likewise. --- gdb/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index a7ceec4..231a6bb 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -2153,7 +2153,7 @@ target_supports_non_stop () static int default_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len) { - return (len <= TYPE_LENGTH (builtin_type_void_data_ptr)); + return (len <= gdbarch_ptr_bit (target_gdbarch) / TARGET_CHAR_BIT); } static int -- cgit v1.1