[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in use
From: |
Paul Brook |
Subject: |
Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2 |
Date: |
Tue, 2 Jun 2009 21:08:14 +0100 |
User-agent: |
KMail/1.11.2 (Linux/2.6.29-2-amd64; KDE/4.2.2; x86_64; ; ) |
On Tuesday 02 June 2009, Nathan Froyd wrote:
> When debugging multi-threaded programs, QEMU's gdb stub would report the
> correct number of threads (the qfThreadInfo and qsThreadInfo packets).
> However, the stub was unable to actually switch between threads (the T
> packet), since it would report every thread except the first as being
> dead. Furthermore, the stub relied upon cpu_index as a reliable means
> of assigning IDs to the threads. This was a bad idea; if you have this
> sequence of events:
>
> initial thread created
> new thread #1
> new thread #2
> thread #1 exits
> new thread #3
>
> thread #3 will have the same cpu_index as thread #1, which would confuse
> GDB.
Really? Why doesn't GDB get confused on real machines when the PID wraps?
Is the real bug that we're missing some sort of thread creation/destruction
event reporting?
Paul
- [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2, Nathan Froyd, 2009/06/02
- Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2,
Paul Brook <=
- Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2, Daniel Jacobowitz, 2009/06/02
- Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2, Nathan Froyd, 2009/06/02
- Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2, Paul Brook, 2009/06/02
- Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2, Nathan Froyd, 2009/06/02
- Re: [Qemu-devel] [PATCH] fix gdbstub support for multiple threads in usermode, v2, Paul Brook, 2009/06/02
- [Qemu-devel] Re: [PATCH] fix gdbstub support for multiple threads in usermode, v2, Antti P Miettinen, 2009/06/16
- Re: [Qemu-devel] Re: [PATCH] fix gdbstub support for multiple threads in usermode, v2, Paul Brook, 2009/06/16
- [Qemu-devel] Re: [PATCH] fix gdbstub support for multiple threads in usermode, v2, Antti P Miettinen, 2009/06/16
- [Qemu-devel] Re: [PATCH] fix gdbstub support for multiple threads in usermode, v2, Jan Kiszka, 2009/06/17
- [Qemu-devel] Re: [PATCH] fix gdbstub support for multiple threads in usermode, v2, Jan Kiszka, 2009/06/02