diff options
author | Tom de Vries <tdevries@suse.de> | 2022-06-04 11:11:37 +0200 |
---|---|---|
committer | Tom de Vries <tdevries@suse.de> | 2022-06-04 11:11:37 +0200 |
commit | 98c17098021554b3394ba052e94d9f1243ae37c2 (patch) | |
tree | 2203711cb704c9d8e8cde690f7d3c366c41cccdd /gdb/disasm-selftests.c | |
parent | 07b7571ebca8e037ac6d3bdc30615fd3e0cbdc48 (diff) | |
download | binutils-98c17098021554b3394ba052e94d9f1243ae37c2.zip binutils-98c17098021554b3394ba052e94d9f1243ae37c2.tar.gz binutils-98c17098021554b3394ba052e94d9f1243ae37c2.tar.bz2 |
[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.
Diffstat (limited to 'gdb/disasm-selftests.c')
-rw-r--r-- | gdb/disasm-selftests.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/disasm-selftests.c b/gdb/disasm-selftests.c index 7daa013..b3c5d99 100644 --- a/gdb/disasm-selftests.c +++ b/gdb/disasm-selftests.c @@ -86,6 +86,13 @@ print_one_insn_test (struct gdbarch *gdbarch) if (gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_arc_arc601) return; goto generic_case; + case bfd_arch_z80: + { + int bplen; + insn = gdbarch_sw_breakpoint_from_kind (gdbarch, 0x0008, &bplen); + len = bplen; + } + break; case bfd_arch_i386: { const struct bfd_arch_info *info = gdbarch_bfd_arch_info (gdbarch); |