mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-12 03:26:19 +08:00
* 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:
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2008-09-11 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* expprint.c (print_subexp_standard): Compare against builtin type
|
* expprint.c (print_subexp_standard): Compare against builtin type
|
||||||
|
@ -82,7 +82,8 @@ int
|
|||||||
default_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
|
default_auxv_parse (struct target_ops *ops, gdb_byte **readptr,
|
||||||
gdb_byte *endptr, CORE_ADDR *typep, CORE_ADDR *valp)
|
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;
|
gdb_byte *ptr = *readptr;
|
||||||
|
|
||||||
if (endptr == ptr)
|
if (endptr == ptr)
|
||||||
|
@ -2153,7 +2153,7 @@ target_supports_non_stop ()
|
|||||||
static int
|
static int
|
||||||
default_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len)
|
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
|
static int
|
||||||
|
Reference in New Issue
Block a user