2004-01-07 Andrew Cagney <cagney@redhat.com>
* mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous architecture's elf flags (when available).
This commit is contained in:
parent
8d5838b592
commit
6214a8a12e
2 changed files with 5 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2004-01-07 Andrew Cagney <cagney@redhat.com>
|
2004-01-07 Andrew Cagney <cagney@redhat.com>
|
||||||
|
|
||||||
|
* 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
|
* mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
|
||||||
FPU to the start, check the MIPS FPU when looking for an old
|
FPU to the start, check the MIPS FPU when looking for an old
|
||||||
architecture.
|
architecture.
|
||||||
|
|
|
@ -5688,6 +5688,8 @@ mips_gdbarch_init (struct gdbarch_info info,
|
||||||
/* First of all, extract the elf_flags, if available. */
|
/* First of all, extract the elf_flags, if available. */
|
||||||
if (info.abfd && bfd_get_flavour (info.abfd) == bfd_target_elf_flavour)
|
if (info.abfd && bfd_get_flavour (info.abfd) == bfd_target_elf_flavour)
|
||||||
elf_flags = elf_elfheader (info.abfd)->e_flags;
|
elf_flags = elf_elfheader (info.abfd)->e_flags;
|
||||||
|
else if (arches != NULL)
|
||||||
|
elf_flags = gdbarch_tdep (arches->gdbarch)->elf_flags;
|
||||||
else
|
else
|
||||||
elf_flags = 0;
|
elf_flags = 0;
|
||||||
if (gdbarch_debug)
|
if (gdbarch_debug)
|
||||||
|
|
Loading…
Add table
Reference in a new issue