Skip to content

Commit 2110c8f

Browse files
committed
Fix gdb version
1 parent b1722d1 commit 2110c8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/appendix-b/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@
6868

6969
下面以[CLion](https://www.jetbrains.com/clion/)中[Rust插件](https://plugins.jetbrains.com/plugin/8182-rust)为例。其他IDE的配置大同小异。
7070

71+
注意:上面提供的GDB二进制版本过低,需要使用自己编译的最新版本的GDB。
72+
7173
1. 在 CLion 中打开项目(os文件夹),选择 ``cargo project`` 。
7274

7375
2. 在项目中新建一个 ``sh`` 文件,输入以下内容并给予可执行权限:
@@ -82,7 +84,7 @@
8284

8385
.. image:: clion_config.jpg
8486

85-
第 1 个红框中选择你的gdb路径
87+
第 1 个红框中选择你的自己编译的gdb路径
8688
第 3, 4 个红框中根据你的代码路径做适当修改
8789
第 5 个红框中,点击下面加号,选择`External Tools`,并选择上面新建的`sh`脚本。
8890

0 commit comments

Comments
 (0)