Open axiangyushanhaijing opened 11 months ago
gdb调试配置的vscode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"miDebuggerServerAddress": "localhost:3334", // GDB地址信息
"program": "/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/bin/java", //调试程序入口
"args": ["-version"], // GDB参数
"stopAtEntry": false,
"cwd": "/home/zhangxiang/zx_temp/jdk8u", //源码位置
"environment": [],
"externalConsole": false,
// 动态库路径
"additionalSOLibSearchPath": "/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib:/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib/riscv64/jli:/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib/riscv64:/home/zhangxiang/zx_temp/jdk8u/build/linux-riscv64-normal-server-slowdebug/jdk/lib/riscv64/server",
"MIMode": "gdb",
"miDebuggerPath": "/home/zhangxiang/riscv64/bin/riscv64-unknown-linux-gnu-gdb", //重点 GDB位置,需要使用riscv32-unknown-linux-gnu-gdb版本的GDB
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
12.25 UseCMoveUnconditionally---此处可以删去。
应该改为&&
此处修改有待商榷
已提 d6915562849bc6c992a87bea15eadbf3cf10c12d