summaryrefslogtreecommitdiffstats
path: root/gdb/rs6000-tdep.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-04-30 00:26:44 +0000
committerKevin Buettner <kevinb@redhat.com>2002-04-30 00:26:44 +0000
commit11ed25acd76a6330e44e14ead51536af9efeaaf8 (patch)
tree19fdaeb7e976111214cfe20e08b7725d6146ac46 /gdb/rs6000-tdep.c
parent7f7ceaf7bd41432b4376ce97e27fb4725035d9a6 (diff)
downloadppe42-binutils-11ed25acd76a6330e44e14ead51536af9efeaaf8.tar.gz
ppe42-binutils-11ed25acd76a6330e44e14ead51536af9efeaaf8.zip
Don't use BFD-private data to determine that an object file is 64-bit xcoff.
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r--gdb/rs6000-tdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c
index 8ccfb99efe..72ceff024a 100644
--- a/gdb/rs6000-tdep.c
+++ b/gdb/rs6000-tdep.c
@@ -38,6 +38,8 @@
#include "libbfd.h" /* for bfd_default_set_arch_mach */
#include "coff/internal.h" /* for libcoff.h */
#include "libcoff.h" /* for xcoff_data */
+#include "coff/xcoff.h"
+#include "libxcoff.h"
#include "elf-bfd.h"
@@ -2506,7 +2508,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
that, else choose a likely default. */
if (from_xcoff_exec)
{
- if (xcoff_data (info.abfd)->xcoff64)
+ if (bfd_xcoff_is_xcoff64 (info.abfd))
wordsize = 8;
else
wordsize = 4;
OpenPOWER on IntegriCloud