aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@imgtec.com>2016-12-19 11:35:14 +0000
committerMaciej W. Rozycki <macro@imgtec.com>2016-12-19 11:39:20 +0000
commit91068ec6ae02e85c5ca4fbe3c6e214bd87bb872f (patch)
tree8fd14958ba359d64a0cb852754e0acab1d66d056 /opcodes
parent4df995c77118d07c12fb260dbba0ca2b281324f1 (diff)
downloadgdb-91068ec6ae02e85c5ca4fbe3c6e214bd87bb872f.zip
gdb-91068ec6ae02e85c5ca4fbe3c6e214bd87bb872f.tar.gz
gdb-91068ec6ae02e85c5ca4fbe3c6e214bd87bb872f.tar.bz2
MIPS/opcodes: Only examine ELF file structures if SYMTAB_AVAILABLE
Correct commit 640c0ccdc980 ("some objdump -M options, better reg dumps"), <https://sourceware.org/ml/binutils/2002-12/msg00706.html>, and only execute code setting up disassembler options based on ELF file structures if SYMTAB_AVAILABLE is set. opcodes/ * mips-dis.c (set_default_mips_dis_options) [SYMTAB_AVAILABLE]: Only examine ELF file structures here.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/mips-dis.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 2618f90..7637018 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,10 @@
2016-12-19 Maciej W. Rozycki <macro@imgtec.com>
+ * mips-dis.c (set_default_mips_dis_options) [SYMTAB_AVAILABLE]:
+ Only examine ELF file structures here.
+
+2016-12-19 Maciej W. Rozycki <macro@imgtec.com>
+
* mips-dis.c (set_default_mips_dis_options) [BFD64]: Only call
`bfd_mips_elf_get_abiflags' here.
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index cd9893e..8c35759 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -839,7 +839,6 @@ set_default_mips_dis_options (struct disassemble_info *info)
mips_cp1_names = chosen_arch->cp1_names;
mips_hwr_names = chosen_arch->hwr_names;
}
-#endif
/* Update settings according to the ELF file header flags. */
if (info->flavour == bfd_target_elf_flavour && info->section != NULL)
@@ -866,6 +865,7 @@ set_default_mips_dis_options (struct disassemble_info *info)
else if (header->e_flags & EF_MIPS_ARCH_ASE_MDMX)
mips_ase |= ASE_MDMX;
}
+#endif
}
static void