qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] How to follow a child process created in the guest OS?


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] How to follow a child process created in the guest OS?
Date: Fri, 10 Feb 2012 08:14:41 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]