mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
[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.
This commit is contained in:
@ -86,6 +86,13 @@ print_one_insn_test (struct gdbarch *gdbarch)
|
|||||||
if (gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_arc_arc601)
|
if (gdbarch_bfd_arch_info (gdbarch)->mach == bfd_mach_arc_arc601)
|
||||||
return;
|
return;
|
||||||
goto generic_case;
|
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:
|
case bfd_arch_i386:
|
||||||
{
|
{
|
||||||
const struct bfd_arch_info *info = gdbarch_bfd_arch_info (gdbarch);
|
const struct bfd_arch_info *info = gdbarch_bfd_arch_info (gdbarch);
|
||||||
|
Reference in New Issue
Block a user