aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/arch-utils.c7
-rw-r--r--opcodes/ChangeLog5
-rw-r--r--opcodes/disassemble.c13
4 files changed, 11 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 818f438..d550938 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
+ * arch-utils.c (default_print_insn): Remove arch/mach/endian
+ assertions.
+
+2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
+
* gdbarch.sh (gdbarch_info): Replace the `tdep_info' member with
a union of `tdep_info', `tdesc_data' and `id'.
* aarch64-tdep.c (aarch64_gdbarch_init): Use `info.tdesc_data'
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 0402eba..4e0fdf4 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -971,13 +971,6 @@ default_print_insn (bfd_vma memaddr, disassemble_info *info)
{
disassembler_ftype disassemble_fn;
- if (exec_bfd != NULL)
- {
- gdb_assert (info->arch == bfd_get_arch (exec_bfd));
- gdb_assert (info->endian == (bfd_big_endian (exec_bfd)
- ? BFD_ENDIAN_BIG : BFD_ENDIAN_LITTLE));
- gdb_assert (info->mach == bfd_get_mach (exec_bfd));
- }
disassemble_fn = disassembler (info->arch, info->endian == BFD_ENDIAN_BIG,
info->mach, exec_bfd);
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 59ff038..61572dd 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-07 Maciej W. Rozycki <macro@imgtec.com>
+
+ * disassemble.c (disassembler): Remove arch/mach/endian
+ assertions.
+
2017-07-25 Nick Clifton <nickc@redhat.com>
PR 21739
diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c
index cd134e8..0058354 100644
--- a/opcodes/disassemble.c
+++ b/opcodes/disassemble.c
@@ -111,21 +111,10 @@
disassembler_ftype
disassembler (enum bfd_architecture a, bfd_boolean big, unsigned long mach,
- bfd *abfd)
+ bfd *abfd ATTRIBUTE_UNUSED)
{
disassembler_ftype disassemble;
- if (abfd != NULL)
- {
- /* Do some asserts that the first three parameters should equal
- to what we can get from ABFD. On the other hand, these
- asserts help removing some compiler errors on unused
- parameter. */
- assert (a == bfd_get_arch (abfd));
- assert (big == bfd_big_endian (abfd));
- assert (mach == bfd_get_mach (abfd));
- }
-
switch (a)
{
/* If you add a case to this table, also add it to the