Re: [Qemu-devel] [PATCH] gdbstub: fix sThreadInfo handler

2013-07-22 Thread Max Filippov
On Mon, Jul 22, 2013 at 2:54 PM, Andreas Färber wrote: > Am 22.07.2013 07:24, schrieb Max Filippov: >> After the commit 182735e cpu: Make first_cpu and next_cpu CPUState >> we can no longer blindly use cpu->next_cpu->env_ptr to get CPUArchState >> of the next CPU, as the next_cpu is NULL in the la

Re: [Qemu-devel] [PATCH] gdbstub: fix sThreadInfo handler

2013-07-22 Thread Andreas Färber
Am 22.07.2013 07:24, schrieb Max Filippov: > After the commit 182735e cpu: Make first_cpu and next_cpu CPUState > we can no longer blindly use cpu->next_cpu->env_ptr to get CPUArchState > of the next CPU, as the next_cpu is NULL in the last CPU. > > This fixes segfault caused by gdb command 'info

[Qemu-devel] [PATCH] gdbstub: fix sThreadInfo handler

2013-07-21 Thread Max Filippov
After the commit 182735e cpu: Make first_cpu and next_cpu CPUState we can no longer blindly use cpu->next_cpu->env_ptr to get CPUArchState of the next CPU, as the next_cpu is NULL in the last CPU. This fixes segfault caused by gdb command 'info threads'. Signed-off-by: Max Filippov --- gdbstub.