aboutsummaryrefslogtreecommitdiff
path: root/bfd/cpu-rs6000.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-10-30 12:01:08 +0000
committerNick Clifton <nickc@redhat.com>2003-10-30 12:01:08 +0000
commit3f8b3ef37bb717cf25bfe766ba87e0c4dc19d633 (patch)
tree45feee8c91b7627099915a42868ea7ced968887f /bfd/cpu-rs6000.c
parentf46a9fbb7a97fd0dead099b950bd89a53950b8bb (diff)
downloadgdb-3f8b3ef37bb717cf25bfe766ba87e0c4dc19d633.zip
gdb-3f8b3ef37bb717cf25bfe766ba87e0c4dc19d633.tar.gz
gdb-3f8b3ef37bb717cf25bfe766ba87e0c4dc19d633.tar.bz2
Check the correct arch_info object's mach field: all PowerPC machines are
supersets of the original rs6000, but not later rs6000 machines.
Diffstat (limited to 'bfd/cpu-rs6000.c')
-rw-r--r--bfd/cpu-rs6000.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/cpu-rs6000.c b/bfd/cpu-rs6000.c
index 63df554..03d3e7d 100644
--- a/bfd/cpu-rs6000.c
+++ b/bfd/cpu-rs6000.c
@@ -47,7 +47,7 @@ rs6000_compatible (a,b)
case bfd_arch_rs6000:
return bfd_default_compatible (a, b);
case bfd_arch_powerpc:
- if (b->mach == bfd_mach_rs6k)
+ if (a->mach == bfd_mach_rs6k)
return b;
return NULL;
}