aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-01-08 05:03:59 +0000
committerAndrew Cagney <cagney@redhat.com>2004-01-08 05:03:59 +0000
commit6214a8a12e5fe2832f64d77f1e70d444b9c4967c (patch)
tree0412ecfeeb85d067f3abfc4384bfdcf140f6b365 /gdb/mips-tdep.c
parent8d5838b5920ff995b71a7011626f656e7e270709 (diff)
downloadgdb-6214a8a12e5fe2832f64d77f1e70d444b9c4967c.zip
gdb-6214a8a12e5fe2832f64d77f1e70d444b9c4967c.tar.gz
gdb-6214a8a12e5fe2832f64d77f1e70d444b9c4967c.tar.bz2
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).
Diffstat (limited to 'gdb/mips-tdep.c')
-rw-r--r--gdb/mips-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index d4a3714..a38de8a 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)