From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gfR9E-0002z2-5R for qemu-devel@nongnu.org; Fri, 04 Jan 2019 10:12:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gfR9C-0003Gm-UJ for qemu-devel@nongnu.org; Fri, 04 Jan 2019 10:12:32 -0500 Received: from mail-ot1-x336.google.com ([2607:f8b0:4864:20::336]:41992) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gfR9C-00031p-QP for qemu-devel@nongnu.org; Fri, 04 Jan 2019 10:12:30 -0500 Received: by mail-ot1-x336.google.com with SMTP id v23so32312554otk.9 for ; Fri, 04 Jan 2019 07:12:22 -0800 (PST) MIME-Version: 1.0 References: <20181207090135.7651-1-luc.michel@greensocs.com> In-Reply-To: <20181207090135.7651-1-luc.michel@greensocs.com> From: Peter Maydell Date: Fri, 4 Jan 2019 15:12:10 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Subject: Re: [Qemu-devel] [PATCH v8 00/16] gdbstub: support for the multiprocess extension List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luc Michel Cc: QEMU Developers , qemu-arm , Sai Pavan Boddu , Edgar Iglesias , Alistair Francis , =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= , Mark Burton , Eduardo Habkost On Fri, 7 Dec 2018 at 09:01, Luc Michel wrote: > This series adds support for the multiprocess extension of the GDB > remote protocol in the QEMU GDB stub. > > This extension is useful to split QEMU emulated CPUs in different > processes from the point of view of the GDB client. It adds the > possibility to debug different kind of processors (e.g. an AArch64 and > an ARMv7 CPU) at the same time (it is not possible otherwise since GDB > expects an SMP view at the thread granularity. I've applied this patchset to target-arm.next, thanks. (I fixed up a few checkpatch nits about block comment style.) > To test this patchset, you can use the following commands: > > (Note that this requires a recent enough GDB, I think GDB 7.2 is OK. > Also, it must be compiled to support both ARM and AArch64 architectures) > > Run QEMU: (-smp 6 in xlnx-zcu102 enables both cortex-a53 and cortex-r5 > CPUs) > > qemu-system-aarch64 -M xlnx-zcu102 -gdb tcp::1234 -S -smp 6 > > Run the following commands in GDB: > > target extended :1234 > add-inferior > inferior 2 > attach 2 > info threads This seems a bit clumsy -- is it just the limitations of gdb here? I was expecting that just connecting to the remote would cause gdb to interrogate it and attach to all the inferior processes that it had. thanks -- PMM