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/gcore.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/gcore.c')
-rw-r--r-- | gdb/gcore.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/gcore.c b/gdb/gcore.c index 21280bba9f7..3ab9f9615d4 100644 --- a/gdb/gcore.c +++ b/gdb/gcore.c @@ -125,12 +125,11 @@ default_gcore_mach (void) #if 1 /* See if this even matters... */ return 0; #else -#ifdef TARGET_ARCHITECTURE - const struct bfd_arch_info *bfdarch = TARGET_ARCHITECTURE; + + const struct bfd_arch_info *bfdarch = gdbarch_bfd_arch_info (current_gdbarch); if (bfdarch != NULL) return bfdarch->mach; -#endif /* TARGET_ARCHITECTURE */ if (exec_bfd == NULL) error (_("Can't find default bfd machine type (need execfile).")); @@ -141,12 +140,11 @@ default_gcore_mach (void) static enum bfd_architecture default_gcore_arch (void) { -#ifdef TARGET_ARCHITECTURE - const struct bfd_arch_info * bfdarch = TARGET_ARCHITECTURE; + const struct bfd_arch_info * bfdarch = gdbarch_bfd_arch_info + (current_gdbarch); if (bfdarch != NULL) return bfdarch->arch; -#endif if (exec_bfd == NULL) error (_("Can't find bfd architecture for corefile (need execfile).")); |