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

2012-02-13 Thread Stefan Hajnoczi
On Sun, Feb 12, 2012 at 3:00 AM, Wei Yang weiyang.ker...@gmail.com wrote: 2012/2/11 malc av1...@comtv.ru: On Sat, 11 Feb 2012, Andreas F?rber wrote: Am 10.02.2012 11:26, schrieb ???: On Fri, Feb 10, 2012 at 08:14:41AM +, Stefan Hajnoczi wrote: On Thu, Feb 09, 2012 at 06:33:16PM +0800,

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

2012-02-12 Thread 陳韋任
On Fri, Feb 10, 2012 at 11:48:05PM +, Paul Brook wrote: I am running this tiny OS on QEMU then using GDB to connect it. I want to follow task 1 after the forking, but it seems that GDB stick with task 0 and cannot follow task 1 even I do `set follow-fork-mode child`. You have

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

2012-02-12 Thread Wei Yang
2012/2/11 malc av1...@comtv.ru: On Sat, 11 Feb 2012, Andreas F?rber wrote: Am 10.02.2012 11:26, schrieb ???: On Fri, Feb 10, 2012 at 08:14:41AM +, Stefan Hajnoczi wrote: On Thu, Feb 09, 2012 at 06:33:16PM +0800, ??? wrote: I am running a tiny OS on QEMU and debugging it with gdbstub.

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

2012-02-10 Thread Max Filippov
 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

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

2012-02-10 Thread Stefan Hajnoczi
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

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

2012-02-10 Thread 陳韋任
On Fri, Feb 10, 2012 at 08:14:41AM +, Stefan Hajnoczi wrote: 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

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

2012-02-10 Thread Paul Brook
I am running this tiny OS on QEMU then using GDB to connect it. I want to follow task 1 after the forking, but it seems that GDB stick with task 0 and cannot follow task 1 even I do `set follow-fork-mode child`. You have exactly one CPU. That's what the qemu GDB stub exposes. Multiple

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

2012-02-10 Thread Andreas Färber
Am 10.02.2012 11:26, schrieb 陳韋任: On Fri, Feb 10, 2012 at 08:14:41AM +, Stefan Hajnoczi wrote: On Thu, Feb 09, 2012 at 06:33:16PM +0800, 陳韋任 wrote: 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

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

2012-02-10 Thread malc
On Sat, 11 Feb 2012, Andreas F?rber wrote: Am 10.02.2012 11:26, schrieb ???: On Fri, Feb 10, 2012 at 08:14:41AM +, Stefan Hajnoczi wrote: On Thu, Feb 09, 2012 at 06:33:16PM +0800, ??? wrote: I am running a tiny OS on QEMU and debugging it with gdbstub. The tiny OS will fork

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

2012-02-09 Thread 陳韋任
Hi all, 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.