Initial commit from https://devstar.cn/lat5211/base.git ( ed411359a0b35dccda674d15913e38a24a6d006b )

This commit is contained in:
2025-10-24 02:54:28 +00:00
commit 093eceb323
14 changed files with 592 additions and 0 deletions

65
.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,65 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug fork",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/fork",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-fork"
},
{
"name": "Debug execlp",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/execlp",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-execlp"
},
{
"name": "Debug All",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/fork", // 默认调试fork
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build-all"
}
]
}

35
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,35 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build-fork",
"type": "shell",
"command": "make",
"args": ["fork"],
"group": "build",
"problemMatcher": ["$gcc"]
},
{
"label": "build-execlp",
"type": "shell",
"command": "make",
"args": ["execlp"],
"group": "build",
"problemMatcher": ["$gcc"]
},
{
"label": "build-all",
"type": "shell",
"command": "make",
"group": "build",
"problemMatcher": ["$gcc"]
},
{
"label": "clean",
"type": "shell",
"command": "make",
"args": ["clean"],
"group": "build"
}
]
}