From: Andrew Cagney Date: Thu, 8 Jan 2004 05:03:59 +0000 (+0000) Subject: 2004-01-07 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6214a8a12e5fe2832f64d77f1e70d444b9c4967c;p=binutils-gdb.git 2004-01-07 Andrew Cagney * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous architecture's elf flags (when available). --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b137e731d30..d330604c393 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-01-07 Andrew Cagney + * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous + architecture's elf flags (when available). + * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS FPU to the start, check the MIPS FPU when looking for an old architecture. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index d4a37148750..a38de8a409d 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -5688,6 +5688,8 @@ mips_gdbarch_init (struct gdbarch_info info, /* First of all, extract the elf_flags, if available. */ if (info.abfd && bfd_get_flavour (info.abfd) == bfd_target_elf_flavour) elf_flags = elf_elfheader (info.abfd)->e_flags; + else if (arches != NULL) + elf_flags = gdbarch_tdep (arches->gdbarch)->elf_flags; else elf_flags = 0; if (gdbarch_debug)