From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:35780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvmys-0005Uw-3Y for qemu-devel@nongnu.org; Fri, 10 Feb 2012 04:41:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvmym-0007mT-GP for qemu-devel@nongnu.org; Fri, 10 Feb 2012 04:41:26 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:38442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvmym-0007mN-8g for qemu-devel@nongnu.org; Fri, 10 Feb 2012 04:41:20 -0500 Received: by wibhi20 with SMTP id hi20so2077018wib.4 for ; Fri, 10 Feb 2012 01:41:19 -0800 (PST) Date: Fri, 10 Feb 2012 08:14:41 +0000 From: Stefan Hajnoczi Message-ID: <20120210081441.GA17878@stefanha-thinkpad.localdomain> References: <20120209103316.GA94562@cs.nctu.edu.tw> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120209103316.GA94562@cs.nctu.edu.tw> Subject: Re: [Qemu-devel] How to follow a child process created in the guest OS? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?B?6Zmz6Z+L5Lu7?= Cc: qemu-devel@nongnu.org On Thu, Feb 09, 2012 at 06:33:16PM +0800, 陳韋任 wrote: > The question is not so related to QEMU itself, but I want to give it a try. > I am running a tiny OS on QEMU and debugging it with gdbstub. The tiny OS will > fork process 1, 2, ... and so on. I want to follow the child process, but the > GDB command `set follow-fork-mode child` doesn't work. This seems to be a bug > or missing feature in GDB remote protocol. [1] > > Is there a way to do what I'm trying to do? Thanks! I'm confused. If you are running a system emulator with a guest OS inside then GDB's process-level features are not available. The QEMU gdbstub gives you access at the system-level. If you want to debug guest processes, run gdb inside the guest. Stefan