diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-13 17:53:51 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-13 17:53:51 +0000 |
commit | e2eda8a68e85639775da4e1d22586a767a8ac332 (patch) | |
tree | 80f6d962e7c79b9c95331c39c3543f015e50a2b0 /gdb/gdbarch.c | |
parent | 0b69ed24cdb63deaf24b6135ace4edbae8e1eff4 (diff) | |
download | gdb-e2eda8a68e85639775da4e1d22586a767a8ac332.tar.gz |
2007-06-13 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
* arch-utils.c (show_architecture): Likewise.
* remote-mips.c (mips_open): Likewise
* nto-tdep.c (nto_find_and_open_solib)
(nto_init_solib_absolute_prefix): Likewise.
* nto-procfs (procfs_open): Likewise.
* m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
* gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
* gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c index c1b705e67d2..8ea41b1f186 100644 --- a/gdb/gdbarch.c +++ b/gdb/gdbarch.c @@ -404,7 +404,7 @@ gdbarch_alloc (const struct gdbarch_info *info, current_gdbarch->double_bit = 8*TARGET_CHAR_BIT; current_gdbarch->long_double_bit = 8*TARGET_CHAR_BIT; current_gdbarch->ptr_bit = current_gdbarch->int_bit; - current_gdbarch->bfd_vma_bit = TARGET_ARCHITECTURE->bits_per_address; + current_gdbarch->bfd_vma_bit = gdbarch_bfd_arch_info (current_gdbarch)->bits_per_address; current_gdbarch->char_signed = -1; current_gdbarch->write_pc = generic_target_write_pc; current_gdbarch->virtual_frame_pointer = legacy_virtual_frame_pointer; @@ -696,14 +696,9 @@ gdbarch_dump (struct gdbarch *current_gdbarch, struct ui_file *file) fprintf_unfiltered (file, "gdbarch_dump: believe_pcc_promotion = %s\n", paddr_d (current_gdbarch->believe_pcc_promotion)); -#ifdef TARGET_ARCHITECTURE - fprintf_unfiltered (file, - "gdbarch_dump: TARGET_ARCHITECTURE # %s\n", - XSTRING (TARGET_ARCHITECTURE)); -#endif fprintf_unfiltered (file, "gdbarch_dump: bfd_arch_info = %s\n", - TARGET_ARCHITECTURE->printable_name); + gdbarch_bfd_arch_info (current_gdbarch)->printable_name); fprintf_unfiltered (file, "gdbarch_dump: bfd_vma_bit = %s\n", paddr_d (current_gdbarch->bfd_vma_bit)); |