qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] gdbstub broken in master
@ 2013-07-08 23:37 Max Filippov
  2013-07-09 21:47 ` Andreas Färber
  0 siblings, 1 reply; 3+ messages in thread
From: Max Filippov @ 2013-07-08 23:37 UTC (permalink / raw)
  To: Andreas Färber; +Cc: qemu-devel, Richard Henderson

Hi Andreas,

commit c52a6b67c1d7c6fc9fb2e3ba988d7b978e1487d3
Author: Andreas Färber <afaerber@suse.de>
Date:   Fri May 17 17:49:10 2013 +0200

    gdbstub: Simplify find_cpu()

    Use qemu_get_cpu() and CPUState::env_ptr.

    Reviewed-by: Richard Henderson <rth@twiddle.net>
    Signed-off-by: Andreas Färber <afaerber@suse.de>

breaks single-stepping in gdb. This commit replaces

        if (cpu_index(cpu) == thread_id) {

with qemu_get_cpu(thread_id) call, which does the following:

        if (cpu->cpu_index == index) {

while cpu_index(cpu) used to return cpu->cpu_index + 1;

-- 
Thanks.
-- Max

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-07-11  1:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-08 23:37 [Qemu-devel] gdbstub broken in master Max Filippov
2013-07-09 21:47 ` Andreas Färber
2013-07-11  1:13   ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).