qemu-system-sparc singlestep not work in gdbstub
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Debugging with gdb-stub does not work with qemu-system-sparc target
Qemu compiled from current git tree.
execution string: qemu-system-
sparc.img -boot c
connect with telnet localhost 1234
enter '$s#73' (without quotes, this is single step command to gdb stub)
gdb stub reply '+' (without quotes, as it accept command)
After this qemu continuously execute instructions in single step mode
and does not exit to gdb stub after each executed instruction with
interrupt signal
("T%02xthread:
If we look at target-
gen_helper_debug() is not called in single step mode:
=======
if ((pc & TARGET_PAGE_MASK) == (tb->pc & TARGET_PAGE_MASK) &&
(npc & TARGET_PAGE_MASK) == (tb->pc & TARGET_PAGE_MASK) &&
/* jump to same page: we can use a direct jump */
} else {
/* jump to another page: currently not optimized */
}
=======
=======
/* if single step mode, we generate only one instruction and
generate an exception */
if (dc->singlestep) {
break;
}
=======
If we look similar code at target-
called in this cases:
=======
if ((tb->pc & TARGET_PAGE_MASK) == (dest & TARGET_PAGE_MASK) &&
!ctx->
/* Use a direct jump if in same page and singlestep not enabled */
} else {
if (ctx->singleste
}
=======
=======
if (tb->cflags & CF_LAST_IO)
if (env->singleste
} else {
=======
Triaging old bug reports ... Can you still reproduce this problem with the latest version of QEMU?