aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:29:21 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:29:21 +0000
commitffe5a37e17da959d4c4e43b33f23b9548ac6fb27 (patch)
tree481e9ea652fd6ad05a0f9e4cb6826e1baec39d33
parentb806fb9a9bd4e0e47382c411d6e9321d1283445b (diff)
downloadgdb-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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/auxv.c3
-rw-r--r--gdb/target.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 391babc..455ab59 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
+ * 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.
+
+2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
+
* expprint.c (print_subexp_standard): Compare against builtin type
associated with exp->gdbarch instead of builtin_type_char.
diff --git a/gdb/auxv.c b/gdb/auxv.c
index 0baec1a..afc7fdd 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -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)
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