File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -268,7 +268,7 @@ K210 真机串口通信
268268 GDB 调试支持
269269------------------------------
270270
271- 在 ``os `` 目录下 ``make debug `` 可以调试我们的内核,这需要安装终端复用工具 ``tmux `` ,还需要基于 riscv64 平台的 gdb 调试器 ``riscv64-unknown-elf-gdb `` 。该调试器包含在 riscv64 gcc 工具链中,工具链的预编译版本可以在如下链接处下载:
271+ 目前我们仅支持基于 Qemu 模拟器进行调试。 在 ``os `` 目录下 ``make debug `` 可以调试我们的内核,这需要安装终端复用工具 ``tmux `` ,还需要基于 riscv64 平台的 gdb 调试器 ``riscv64-unknown-elf-gdb `` 。该调试器包含在 riscv64 gcc 工具链中,工具链的预编译版本可以在如下链接处下载:
272272
273273- `Ubuntu 平台 <https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2020.04.1-x86_64-linux-ubuntu14.tar.gz >`_
274274- `macOS 平台 <https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2020.04.1-x86_64-apple-darwin.tar.gz >`_
@@ -281,6 +281,8 @@ GDB 调试支持
281281
282282在其他缺少预编译 riscv64 gcc 工具链的 Linux x86-64 平台(如 openEuler 操作系统、龙蜥操作系统等)上,则需要 clone `riscv 工具链仓库 <https://github.com/riscv-collab/riscv-gnu-toolchain >`_ 并参考其说明手动构建。
283283
284+ 此外,参考 ``os/Makefile `` ,还可以先打开一个终端页面 ``make gdbserver `` 启动 Qemu ,此后另开一个终端页面在同目录下 ``make gdbclient `` 将 GDB 客户端连接到 Qemu 进行调试。我们推荐使用 `gdb-dashboard <https://github.com/cyrus-and/gdb-dashboard >`_ 插件,可以大大提升调试体验。在本节的评论区已有同学提供了基于各种 IDE 的调试方法,也可参考。
285+
284286运行 rCore-Tutorial-v3
285287------------------------------------------------------------
286288
You can’t perform that action at this time.
0 commit comments