diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:29:21 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2008-09-11 14:29:21 +0000 |
commit | ffe5a37e17da959d4c4e43b33f23b9548ac6fb27 (patch) | |
tree | 481e9ea652fd6ad05a0f9e4cb6826e1baec39d33 /gdb/auxv.c | |
parent | b806fb9a9bd4e0e47382c411d6e9321d1283445b (diff) | |
download | gdb-ffe5a37e17da959d4c4e43b33f23b9548ac6fb27.zip gdb-ffe5a37e17da959d4c4e43b33f23b9548ac6fb27.tar.gz gdb-ffe5a37e17da959d4c4e43b33f23b9548ac6fb27.tar.bz2 |
* 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/auxv.c')
-rw-r--r-- | gdb/auxv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -82,7 +82,8 @@ int default_auxv_parse (struct target_ops *ops, gdb_byte **readptr, gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp) { - const int sizeof_auxv_field = TYPE_LENGTH (builtin_type_void_data_ptr); + const int sizeof_auxv_field = gdbarch_ptr_bit (target_gdbarch) + / TARGET_CHAR_BIT; gdb_byte *ptr = *readptr; if (endptr == ptr) |