This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-variable-monitor/.vscode/launch.json
2023-11-27 03:18:51 -05:00

72 lines
2.7 KiB
JSON

{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) ucli",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/source/ucli/ucli",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "make ucli",
"postDebugTask": "make clean ucli",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
{
"name": "(gdb) linux kernel",
"type": "cppdbg",
"request": "launch",
//"preLaunchTask": "centos7",
// socat pty,link=./rootkit.pty,raw,echo=0 EXEC:"/mnt/c/ProgramData/chocolatey/lib/npiperelay/tools/npiperelay.exe -ep -s //./pipe/rootkit",nofork
"program": "${workspaceFolder}/linux-5.17.15/vmlinux",
//"miDebuggerServerAddress": "localhost:1234",
//"debugServerPath": "${workspaceFolder}/rootkit.pty",
"miDebuggerPath": "/usr/bin/gdb",
"miDebuggerArgs": "-ex 'set serial baud 115200 target remote ./rootkit.pty'",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
//"miDebuggerArgs": "-n",
"targetArchitecture": "x64",
"setupCommands": [ // 或许在这里添加的 set serial baud 115200 | target remote ./rootkit.pty
{
"text": "set arch i386:x86-64:intel",
"ignoreFailures": false
},
{
"text": "dir .",
"ignoreFailures": false
},
{
"text": "add-auto-load-safe-path ./",
"ignoreFailures": false
},
{
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}