From: Stefan Hajnoczi <stefanha@gmail.com>
To: 陳韋任 <chenwj@iis.sinica.edu.tw>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] How to follow a child process created in the guest OS?
Date: Fri, 10 Feb 2012 08:14:41 +0000 [thread overview]
Message-ID: <20120210081441.GA17878@stefanha-thinkpad.localdomain> (raw)
In-Reply-To: <20120209103316.GA94562@cs.nctu.edu.tw>
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
next prev parent reply other threads:[~2012-02-10 9:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-09 10:33 [Qemu-devel] How to follow a child process created in the guest OS? 陳韋任
2012-02-10 8:14 ` Stefan Hajnoczi [this message]
2012-02-10 10:26 ` 陳韋任
2012-02-10 23:48 ` Paul Brook
2012-02-10 23:54 ` 陳韋任
2012-02-11 0:42 ` Andreas Färber
2012-02-11 0:50 ` malc
2012-02-12 3:00 ` Wei Yang
2012-02-13 10:49 ` Stefan Hajnoczi
2012-02-10 9:24 ` Max Filippov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120210081441.GA17878@stefanha-thinkpad.localdomain \
--to=stefanha@gmail.com \
--cc=chenwj@iis.sinica.edu.tw \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).