From 5e7056dc494a3718226e00a3cb5ba10a86b6965a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Thu, 11 Sep 2008 14:29:18 +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 a7ceec4cbd4..231a6bb0e92 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.2.1