From 2271e1c5c7c9caed83a9610cf90bb4fd1be230a8 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 5 May 2023 21:02:01 +0300 Subject: [PATCH] Add doom.elf to vscode debug --- .vscode/launch.json | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5524bcae..e97c5e7c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -35,6 +35,41 @@ "description": "Load binary." }, ] + }, + { + "name": "/system/bin/doom.elf", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceRoot}/out/system/bin/doom.elf", + "cwd": "${workspaceRoot}", + "args": [], + "targetArchitecture": "x64", + "MIMode": "gdb", + "miDebuggerPath": "/usr/bin/gdb", + "miDebuggerArgs": "", + "externalConsole": false, + "additionalSOLibSearchPath": "${workspaceRoot}", + "customLaunchSetupCommands": [ + { + "text": "target remote localhost:1234", + "description": "Connect to QEMU remote debugger" + } + ], + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "text": "set breakpoint pending on", + "description": "Make breakpoint pending on future shared library load." + }, + { + "text": "file ${workspaceRoot}/out/system/bin/doom.elf", + "description": "Load binary." + }, + ] } ] } \ No newline at end of file