diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-08-19 05:32:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-08-19 05:32:23 +0000 |
commit | 9103eae08213b08c59310b0b4189941c55d6ed24 (patch) | |
tree | 0a426e31846968be5b1662a999df7aa947d535f9 /gdb | |
parent | e99586d56aa63911e842a974bd8eb7ed20da7af0 (diff) | |
download | gdb-9103eae08213b08c59310b0b4189941c55d6ed24.zip gdb-9103eae08213b08c59310b0b4189941c55d6ed24.tar.gz gdb-9103eae08213b08c59310b0b4189941c55d6ed24.tar.bz2 |
Check arches->gdbarch and not current_gdbarch when looking for a match.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fd92979..d4b4a6b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2000-08-18 Andrew Cagney <cagney@ops1.cygnus.com> + + * mips-tdep.c (mips_gdbarch_init): Check arches->gdbarch and not + current_gdbarch for a match. + 2000-08-18 J.T. Conklin <jtc@redback.com> * MAINTAINERS: Add myself as dcache.c maintainer. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 4139bbc..20d5446 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -3884,9 +3884,9 @@ mips_gdbarch_init (struct gdbarch_info info, { /* MIPS needs to be pedantic about which ABI the object is using. */ - if (gdbarch_tdep (current_gdbarch)->elf_flags != elf_flags) + if (gdbarch_tdep (arches->gdbarch)->elf_flags != elf_flags) continue; - if (gdbarch_tdep (current_gdbarch)->mips_abi != mips_abi) + if (gdbarch_tdep (arches->gdbarch)->mips_abi != mips_abi) continue; return arches->gdbarch; } |