This commit is contained in:
2022-09-26 23:22:38 +02:00
parent 83382c4e31
commit d9b7544a04
39 changed files with 3197 additions and 9 deletions

15
.vscode/launch.json vendored
View File

@@ -8,17 +8,22 @@
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "enter program name, for example ${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
"program": "${workspaceFolder}/${workspaceFolderBasename}.elf",
"targetArchitecture": "arm",
"preLaunchTask": "gdb-debug",
"postDebugTask": "stop-emulation",
"serverLaunchTimeout": 10000,
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "/opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb",
"miDebuggerServerAddress": "localhost:20000",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"description": "Enable pretty-printing",
"text": "file ${workspaceFolder}/${workspaceFolderBasename}.elf -enable-pretty-printing",
"ignoreFailures": true
}
]

91
.vscode/tasks.json vendored
View File

@@ -34,6 +34,97 @@
"showReuseMessage": true,
"clear": false
}
},
{
"label": "make debug",
"type": "process",
"command": "make",
"args": [
"DEBUG=1"
],
"problemMatcher": []
},
{
"label": "make release",
"type": "process",
"command": "make",
"args": [
"DEBUG=0"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "clean",
"type": "process",
"command": "make",
"args": [
"clean"
],
"problemMatcher": []
},
{
"label": "run",
"type": "shell",
"isBackground": true,
"command": "desmume-cli",
"args": [
"${workspaceFolder}/${workspaceFolderBasename}.nds"
],
"presentation": {
"clear": true,
"reveal": "always"
},
"problemMatcher": []
},
{
"label": "gdb-debug",
"type": "shell",
"dependsOn": [
"make debug"
],
"isBackground": true,
"command": "desmume-cli",
"args": [
"${workspaceFolder}/${workspaceFolderBasename}.nds",
"--arm9gdb",
"20000"
],
"presentation": {
"clear": true,
"reveal": "always"
},
"problemMatcher": [
{
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": ".",
}
}
]
},
{
"label": "stop-emulation",
"type": "shell",
"command": "pkill",
"args": [
"--signal",
"9",
"desmume-cli"
],
"problemMatcher": []
}
]
}