* 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.
This commit is contained in:
Ulrich Weigand
2008-09-11 14:29:21 +00:00
parent b806fb9a9b
commit ffe5a37e17
3 changed files with 9 additions and 2 deletions

View File

@ -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