aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorChris Demetriou <cgd@google.com>2003-07-09 22:53:52 +0000
committerChris Demetriou <cgd@google.com>2003-07-09 22:53:52 +0000
commitfec0654638b5506964489a9992fd8a6e2bc724d5 (patch)
tree866c4ef5ef4576f07a8cda2b586db9da8e278faa /opcodes
parent32f63c4bfff8c366a2d0c84c65245f80a8564ad4 (diff)
downloadgdb-fec0654638b5506964489a9992fd8a6e2bc724d5.zip
gdb-fec0654638b5506964489a9992fd8a6e2bc724d5.tar.gz
gdb-fec0654638b5506964489a9992fd8a6e2bc724d5.tar.bz2
2003-07-09 Chris Demetriou <cgd@broadcom.com>
* mips-dis.c (set_default_mips_dis_options): Get BFD from the disassembler_info's section, rather than from the disassembler_info's symbols pointer.
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/ChangeLog6
-rw-r--r--opcodes/mips-dis.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index a3ffab9..b1b6619 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2003-07-09 Chris Demetriou <cgd@broadcom.com>
+
+ * mips-dis.c (set_default_mips_dis_options): Get BFD from
+ the disassembler_info's section, rather than from the
+ disassembler_info's symbols pointer.
+
2003-07-07 Alan Modra <amodra@bigpond.net.au>
* ppc-opc.c: Remove NULL pointer checks. Formatting. Remove
diff --git a/opcodes/mips-dis.c b/opcodes/mips-dis.c
index 1ed436a..20d95ab 100644
--- a/opcodes/mips-dis.c
+++ b/opcodes/mips-dis.c
@@ -495,11 +495,11 @@ set_default_mips_dis_options (info)
mips_hwr_names = mips_hwr_names_numeric;
/* If an ELF "newabi" binary, use the n32/(n)64 GPR names. */
- if (info->flavour == bfd_target_elf_flavour && info->symbols != NULL)
+ if (info->flavour == bfd_target_elf_flavour && info->section != NULL)
{
Elf_Internal_Ehdr *header;
- header = elf_elfheader (bfd_asymbol_bfd (*(info->symbols)));
+ header = elf_elfheader (info->section->owner);
if (is_newabi (header))
mips_gpr_names = mips_gpr_names_newabi;
}