aboutsummaryrefslogtreecommitdiff
path: root/gdb/nto-tdep.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-13 17:53:51 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-13 17:53:51 +0000
commit1143fffb920d9d9995854541dae2c8f6add8387a (patch)
tree82dcc04e158bcd1a37c3d0d6b1982e7cb5d6e0d2 /gdb/nto-tdep.c
parent4fe99ffbcc277eb81e708a29fe199c383c399a8d (diff)
downloadgdb-1143fffb920d9d9995854541dae2c8f6add8387a.zip
gdb-1143fffb920d9d9995854541dae2c8f6add8387a.tar.gz
gdb-1143fffb920d9d9995854541dae2c8f6add8387a.tar.bz2
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/nto-tdep.c')
-rw-r--r--gdb/nto-tdep.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 1949f6f..c7fd017 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -108,20 +108,22 @@ nto_find_and_open_solib (char *solib, unsigned o_flags, char **temp_pathname)
#define PATH_FMT "%s/lib:%s/usr/lib:%s/usr/photon/lib:%s/usr/photon/dll:%s/lib/dll"
nto_root = nto_target ();
- if (strcmp (TARGET_ARCHITECTURE->arch_name, "i386") == 0)
+ if (strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name, "i386") == 0)
{
arch = "x86";
endian = "";
}
- else if (strcmp (TARGET_ARCHITECTURE->arch_name, "rs6000") == 0
- || strcmp (TARGET_ARCHITECTURE->arch_name, "powerpc") == 0)
+ else if (strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name,
+ "rs6000") == 0
+ || strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name,
+ "powerpc") == 0)
{
arch = "ppc";
endian = "be";
}
else
{
- arch = TARGET_ARCHITECTURE->arch_name;
+ arch = gdbarch_bfd_arch_info (current_gdbarch)->arch_name;
endian = gdbarch_byte_order (current_gdbarch)
== BFD_ENDIAN_BIG ? "be" : "le";
}
@@ -168,20 +170,22 @@ nto_init_solib_absolute_prefix (void)
const char *arch;
nto_root = nto_target ();
- if (strcmp (TARGET_ARCHITECTURE->arch_name, "i386") == 0)
+ if (strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name, "i386") == 0)
{
arch = "x86";
endian = "";
}
- else if (strcmp (TARGET_ARCHITECTURE->arch_name, "rs6000") == 0
- || strcmp (TARGET_ARCHITECTURE->arch_name, "powerpc") == 0)
+ else if (strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name,
+ "rs6000") == 0
+ || strcmp (gdbarch_bfd_arch_info (current_gdbarch)->arch_name,
+ "powerpc") == 0)
{
arch = "ppc";
endian = "be";
}
else
{
- arch = TARGET_ARCHITECTURE->arch_name;
+ arch = gdbarch_bfd_arch_info (current_gdbarch)->arch_name;
endian = gdbarch_byte_order (current_gdbarch)
== BFD_ENDIAN_BIG ? "be" : "le";
}