Setup debug for spinning cube

This commit is contained in:
2025-08-05 00:06:58 -04:00
parent d64eaf8e2f
commit 8f71a7bf9c
6 changed files with 155 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
{
// 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": "Debug: Spinning Cube",
"type": "gdb",
"request": "attach",
"target": "localhost:3333",
"remote": true,
"cwd": "${workspaceRoot}/psxdev_sample/SpinningCube",
"valuesFormatting": "parseText",
"stopAtConnect": true,
"gdbpath": "gdb-multiarch",
"windows": {
"gdbpath": "gdb-multiarch.exe"
},
"osx": {
"gdbpath": "gdb"
},
"executable": "${workspaceRoot}/psxdev_sample/SpinningCube/SpinningCube.elf",
"autorun": [
"monitor reset shellhalt",
"load SpinningCube.elf",
"tbreak main",
"continue"
]
}
]
}
@@ -0,0 +1,40 @@
{
"configurations": [
{
"name": "Win32",
"compilerPath": "${env:AppData}\\mips\\mips\\bin\\mipsel-none-elf-gcc.exe",
"cStandard": "c17",
"cppStandard": "c++20",
"defines": [
"__STDC_HOSTED__ = 0"
],
"includePath": [
"${env:AppData}/mips/mips/include",
"${workspaceFolder}/",
"${workspaceFolder}/third_party/nugget",
"${workspaceFolder}/third_party/psyq-iwyu/include"
],
"intelliSenseMode": "gcc-x86"
},
{
"name": "linux",
"compilerPath": "mipsel-linux-gnu-gcc",
"cStandard": "c17",
"cppStandard": "c++20",
"defines": [
"__STDC_HOSTED__ = 0"
],
"includePath": [
"/usr/mipsel-linux-gnu/include",
"/usr/local/mipsel-linux-gnu/include",
"/usr/mipsel-none-elf/include",
"/usr/local/mipsel-none-elf/include",
"${workspaceFolder}/",
"${workspaceFolder}/third_party/nugget",
"${workspaceFolder}/third_party/psyq-iwyu/include"
],
"intelliSenseMode": "gcc-x86"
}
],
"version": 4
}
+29
View File
@@ -0,0 +1,29 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug",
"type": "gdb",
"request": "attach",
"target": "localhost:3333",
"remote": true,
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText",
"stopAtConnect": true,
"gdbpath": "gdb-multiarch",
"windows": {
"gdbpath": "gdb-multiarch.exe"
},
"osx": {
"gdbpath": "gdb"
},
"executable": "${workspaceRoot}/${workspaceRootFolderName}.elf",
"autorun": [
"monitor reset shellhalt",
"load ${workspaceRootFolderName}.elf",
"tbreak main",
"continue"
]
}
]
}
+10
View File
@@ -0,0 +1,10 @@
{
"files.associations": {
"*.rmd": "markdown",
"*.s": "armips",
"stdlib.h": "c",
"libgte.h": "c",
"libgpu.h": "c",
"libetc.h": "c"
}
}
+37
View File
@@ -0,0 +1,37 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Build Debug",
"type": "shell",
"command": "make BUILD=Debug",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Build Release",
"type": "shell",
"command": "make",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
"label": "Clean",
"type": "shell",
"command": "make clean",
"group": {
"kind": "build"
}
}
]
}
+7
View File
@@ -0,0 +1,7 @@
$path_root = split-path -Path $PSScriptRoot -Parent
$path_build = join-path $path_root 'build'
$path_code = join-path $path_root 'code'
$path_scripts = join-path $path_root 'scripts'
$path_toolchain = join-path $path_root 'toolchain'