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 | 17a912b6825ef7feaad6d9b4f5419f045fe3c8d0 (patch) | |
tree | efb8f5f61bc4e5847a2239bea947736f89e326d3 /gdb/gdbarch.h | |
parent | 1143fffb920d9d9995854541dae2c8f6add8387a (diff) | |
download | gdb-17a912b6825ef7feaad6d9b4f5419f045fe3c8d0.zip gdb-17a912b6825ef7feaad6d9b4f5419f045fe3c8d0.tar.gz gdb-17a912b6825ef7feaad6d9b4f5419f045fe3c8d0.tar.bz2 |
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/gdbarch.h')
-rw-r--r-- | gdb/gdbarch.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h index ff52b36..7fd1248 100644 --- a/gdb/gdbarch.h +++ b/gdb/gdbarch.h @@ -124,10 +124,10 @@ extern void set_gdbarch_long_double_format (struct gdbarch *gdbarch, const struc /* For most targets, a pointer on the target and its representation as an address in GDB have the same size and "look the same". For such a - target, you need only set gdbarch_ptr_bit and TARGET_ADDR_BIT + target, you need only set gdbarch_ptr_bit and gdbarch_addr_bit / addr_bit will be set from it. - If gdbarch_ptr_bit and TARGET_ADDR_BIT are different, you'll probably + If gdbarch_ptr_bit and gdbarch_addr_bit are different, you'll probably also need to set gdbarch_pointer_to_address and gdbarch_address_to_pointer as well. @@ -140,12 +140,6 @@ extern void set_gdbarch_ptr_bit (struct gdbarch *gdbarch, int ptr_bit); extern int gdbarch_addr_bit (struct gdbarch *gdbarch); extern void set_gdbarch_addr_bit (struct gdbarch *gdbarch, int addr_bit); -#if !defined (GDB_TM_FILE) && defined (TARGET_ADDR_BIT) -#error "Non multi-arch definition of TARGET_ADDR_BIT" -#endif -#if !defined (TARGET_ADDR_BIT) -#define TARGET_ADDR_BIT (gdbarch_addr_bit (current_gdbarch)) -#endif /* Number of bits in a BFD_VMA for the target object file format. */ |