diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:29:18 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:29:18 +0000 |
commit | 5e7056dc494a3718226e00a3cb5ba10a86b6965a (patch) | |
tree | 20122c83b30ea8b6905c4b6304f12b6107034b19 /gdb/target.c | |
parent | bd904e8f1c2fbaead2eee9892b8310c64bba25e1 (diff) | |
download | gdb-5e7056dc494a3718226e00a3cb5ba10a86b6965a.tar.gz |
* 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.
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 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 |