From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L2XUd-0004cV-8F for qemu-devel@nongnu.org; Tue, 18 Nov 2008 15:48:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L2XUc-0004c0-04 for qemu-devel@nongnu.org; Tue, 18 Nov 2008 15:48:14 -0500 Received: from [199.232.76.173] (port=54066 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L2XUb-0004bx-NE for qemu-devel@nongnu.org; Tue, 18 Nov 2008 15:48:13 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:19589) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L2XUb-0001he-GZ for qemu-devel@nongnu.org; Tue, 18 Nov 2008 15:48:13 -0500 Received: by fg-out-1718.google.com with SMTP id l26so2624844fgb.8 for ; Tue, 18 Nov 2008 12:48:11 -0800 (PST) Message-ID: <49232A03.3000100@codemonkey.ws> Date: Tue, 18 Nov 2008 14:48:03 -0600 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] [5743] gdbstub: manage CPUs as threads (Jan Kiszka) References: <200811182042.59526.paul@codesourcery.com> In-Reply-To: <200811182042.59526.paul@codesourcery.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Jan Kiszka , qemu-devel@nongnu.org Paul Brook wrote: > On Tuesday 18 November 2008, Anthony Liguori wrote: > >> Revision: 5743 >> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5743 >> Author: aliguori >> Date: 2008-11-18 20:30:24 +0000 (Tue, 18 Nov 2008) >> >> Log Message: >> ----------- >> gdbstub: manage CPUs as threads (Jan Kiszka) >> > > This is wrong. CPUs do not share the same address space, so should be modelled > as processes, not threads. > They share the same physical address space. How well does GDB support debugging processes verses threads? A cursory look seems to suggest the thread debugging support is slightly better (thread events) than the process debugging support. They look very similar though. Regards, Anthony Liguori > Paul >