Improve Makefile to make easier Debug in PSP

This commit is contained in:
Francisco Javier Trujillo Mata 2020-01-06 15:38:33 +01:00
parent 5f81200067
commit af6208be29
2 changed files with 21 additions and 1 deletions

7
.vscode/launch.json vendored
View file

@ -53,7 +53,12 @@
"text": "symbol-file ${workspaceFolder}/retroarchpsp.elf",
"description": "read symbols for elf file",
"ignoreFailures": true
}
},
{
"description": "Enable all-exceptions",
"text": "-exec \"catch throw\"",
"ignoreFailures": true
}
],
"showDisplayString": true,
"targetArchitecture": "mips",

View file

@ -56,5 +56,20 @@ PSP_OBJECTS = griffin/griffin.o bootstrap/psp1/kernel_functions.o
OBJS = $(PSP_OBJECTS)
pspsh-debug:
pspsh -e reset
read -p "Start debugger in VSCode and press any key to continue... \n" -n1 -s
# pspsh -e debug ./retroarchpsp.prx
pspsh
pspsh-run:
pspsh -e reset
pspsh -e ./retroarchpsp.prx
pspsh
debug: clean all pspsh-debug
run: clean all pspsh-run
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak