diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-13 17:59:51 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-13 17:59:51 +0000 |
commit | 8cc13fbcfab50cf81aa8861c0a1dd85c03cd1b64 (patch) | |
tree | 5932d0d8f63d28dbfe7e5cf4fc127d015f846da4 /gdb/utils.c | |
parent | e2eda8a68e85639775da4e1d22586a767a8ac332 (diff) | |
download | gdb-8cc13fbcfab50cf81aa8861c0a1dd85c03cd1b64.tar.gz |
2007-06-13 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
* valops.c (value_cast): Likewise.
* utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
* ui-out.c (ui_out_field_core_addr): Likewise.
* tracepoint.c (tracepoints_info): Likewise.
* symtab.c (print_msymbol_info): Likewise.
* solib-irix.c (irix_current_sos)
(irix_open_symbol_file_object): Likewise.
* remote.c (build_remote_gdbarch_data): Likewise.
* prologue-value.c (make_pv_area): Likewise.
* procfs.c (info_mappings_callback): Likewise.
* printcmd.c (print_scalar_formatted)
(deprecated_print_address_numeric): Likewise.
* memattr.c (mem_info_command): Likewise.
* linux-nat.c (linux_nat_info_proc_cmd): Likewise.
* gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
* exec.c (print_section_info): Likewise.
* dwarf2read.c (read_subrange_type): Likewise.
* dwarf2loc.c (find_location_expression): Likewise.
* dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
(signed_address_type, execute_stack_op): Likewise.
* breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index 6f3719adc66..c8abeec0202 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -2535,19 +2535,19 @@ get_cell (void) int strlen_paddr (void) { - return (TARGET_ADDR_BIT / 8 * 2); + return (gdbarch_addr_bit (current_gdbarch) / 8 * 2); } char * paddr (CORE_ADDR addr) { - return phex (addr, TARGET_ADDR_BIT / 8); + return phex (addr, gdbarch_addr_bit (current_gdbarch) / 8); } char * paddr_nz (CORE_ADDR addr) { - return phex_nz (addr, TARGET_ADDR_BIT / 8); + return phex_nz (addr, gdbarch_addr_bit (current_gdbarch) / 8); } const char * @@ -2562,7 +2562,7 @@ paddress (CORE_ADDR addr) either zero or sign extended. Should gdbarch_address_to_pointer or some ADDRESS_TO_PRINTABLE() be used to do the conversion? */ - int addr_bit = TARGET_ADDR_BIT; + int addr_bit = gdbarch_addr_bit (current_gdbarch); if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT)) addr &= ((CORE_ADDR) 1 << addr_bit) - 1; |