[gdb] Fix warning in print_one_insn::ez80-adl
authorTom de Vries <tdevries@suse.de>
Sat, 4 Jun 2022 09:11:37 +0000 (11:11 +0200)
committerTom de Vries <tdevries@suse.de>
Sat, 4 Jun 2022 09:11:37 +0000 (11:11 +0200)
commit98c17098021554b3394ba052e94d9f1243ae37c2
tree2203711cb704c9d8e8cde690f7d3c366c41cccdd
parent07b7571ebca8e037ac6d3bdc30615fd3e0cbdc48
[gdb] Fix warning in print_one_insn::ez80-adl

When running selftest print_one_insn::ez80-adl we run into this warning:
...
Running selftest print_one_insn::ez80-adl.
warning: Unable to determine inferior's software breakpoint type: couldn't
  find `_break_handler' function in inferior. Will be used default software \
  breakpoint instruction RST 0x08.
...

Fix this by explicitly handling bfd_arch_z80 in print_one_insn_test.

Tested on x86_64-linux.
gdb/disasm-selftests.c