Skip to content

Commit

Permalink
Update 4first-instruction-in-kernel2.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
wyfcyx committed Mar 10, 2022
1 parent e2b617f commit 05866a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/chapter1/4first-instruction-in-kernel2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
-device loader,file=target/riscv64gc-unknown-none-elf/release/os.bin,addr=0x80200000 \
-s -S
``-s`` 可以使 Qemu 监听本地 TCP 端口 1234 等待 GDB 客户端连接,而 ``-S`` 可以使 Qemu 在收到 GDB 的请求后再开始运行。因此,Qemu 暂时没有任何输出。
``-s`` 可以使 Qemu 监听本地 TCP 端口 1234 等待 GDB 客户端连接,而 ``-S`` 可以使 Qemu 在收到 GDB 的请求后再开始运行。因此,Qemu 暂时没有任何输出。注意,如果不想通过 GDB 对于 Qemu 进行调试而是直接运行 Qemu 的话,则要删掉最后一行的 ``-s -S`` 。

打开另一个终端,启动一个 GDB 客户端连接到 Qemu :

Expand Down

0 comments on commit 05866a1

Please sign in to comment.