[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-discuss
Subject:    How to open two shell in QEMU?
From:       "=?ISO-8859-1?B?VGFpeXU=?=" <taiyu.zhou () foxmail ! com>
Date:       2021-12-08 2:19:58
Message-ID: tencent_0FA308D083186821DBC75335FDA073D3BC0A () qq ! com
[Download RAW message or body]

[Attachment #2 (text/plain)]

I am running linux kernel in QEMU and use GDB to debug it.
My QEMU command is&nbsp;


&nbsp; &nbsp; qemu-system-x86_64 -kernel ./bzImage \
&nbsp; &nbsp; 	-hda ./busybox-1.32.0/rootfs.img \
&nbsp; &nbsp; 	-append "root=/dev/sda console=ttyS0" -s -S -smp 2 -nographic


But I am now can only run one shell in the QEMU. And once hits the breadpoint setted \
by GDB, I could not continue normal operation. For example, I make breakpoint in \
`new_sync_read()` and type `ls` in the QEMU. Then it hits the breakpoint and stops.


I hope to run two shell in the QEMU. In the first shell I want to run a program that \
hits a breakpoint setted by GDB and then stop. In the second shell I want to run \
another program or continue normal operation. Would it be possible?


[Attachment #3 (text/html)]

<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div><div>I am \
running linux kernel in QEMU and use GDB to debug it.</div><div>My QEMU command \
is&nbsp;</div><div><br></div><div>&nbsp; &nbsp; qemu-system-x86_64 -kernel ./bzImage \
\</div><div>&nbsp; &nbsp; <span style="white-space:pre">	</span>-hda \
./busybox-1.32.0/rootfs.img \</div><div>&nbsp; &nbsp; <span \
style="white-space:pre">	</span>-append "root=/dev/sda console=ttyS0" -s -S -smp 2 \
-nographic</div><div><br></div><div>But I am now can only run one shell in the QEMU. \
And once hits the breadpoint setted by GDB, I could not continue normal \
operation.</div><div>For example, I make breakpoint in `new_sync_read()` and type \
`ls` in the QEMU. Then it hits the breakpoint and stops.</div><div><br></div><div>I \
hope to run two shell in the QEMU. In the first shell I want to run a program that \
hits a breakpoint setted by GDB and then stop. In the second shell I want to run \
another program or continue normal operation.</div><div>Would it be \
possible?</div></div>


Part


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic