mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
[gdb] Enable some more print_one_insn selftests
In print_one_insn_test we have this cluster of skipped tests: ... case bfd_arch_ia64: case bfd_arch_mep: case bfd_arch_mips: case bfd_arch_tic6x: case bfd_arch_xtensa: return; ... Enable some of these, and document in more detail why they're enabled or skipped. Likewise, document bfd_arch_or1k because it's an odd case. Tested on x86_64-linux.
This commit is contained in:
@ -50,11 +50,29 @@ print_one_insn_test (struct gdbarch *gdbarch)
|
|||||||
len = sizeof (arm_insn);
|
len = sizeof (arm_insn);
|
||||||
break;
|
break;
|
||||||
case bfd_arch_ia64:
|
case bfd_arch_ia64:
|
||||||
case bfd_arch_mep:
|
/* We get:
|
||||||
case bfd_arch_mips:
|
internal-error: gdbarch_sw_breakpoint_from_kind:
|
||||||
case bfd_arch_tic6x:
|
Assertion `gdbarch->sw_breakpoint_from_kind != NULL' failed. */
|
||||||
case bfd_arch_xtensa:
|
|
||||||
return;
|
return;
|
||||||
|
case bfd_arch_mep:
|
||||||
|
/* Disassembles as '*unknown*' insn, then len self-check fails. */
|
||||||
|
return;
|
||||||
|
case bfd_arch_mips:
|
||||||
|
if (gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_mips16)
|
||||||
|
/* Disassembles insn, but len self-check fails. */
|
||||||
|
return;
|
||||||
|
goto generic_case;
|
||||||
|
case bfd_arch_tic6x:
|
||||||
|
/* Disassembles as '<undefined instruction 0x56454314>' insn, but len
|
||||||
|
self-check passes, so let's allow it. */
|
||||||
|
goto generic_case;
|
||||||
|
case bfd_arch_xtensa:
|
||||||
|
/* Disassembles insn, but len self-check fails. */
|
||||||
|
return;
|
||||||
|
case bfd_arch_or1k:
|
||||||
|
/* Disassembles as '*unknown*' insn, but len self-check passes, so let's
|
||||||
|
allow it. */
|
||||||
|
goto generic_case;
|
||||||
case bfd_arch_s390:
|
case bfd_arch_s390:
|
||||||
/* nopr %r7 */
|
/* nopr %r7 */
|
||||||
static const gdb_byte s390_insn[] = {0x07, 0x07};
|
static const gdb_byte s390_insn[] = {0x07, 0x07};
|
||||||
|
Reference in New Issue
Block a user