Skip to content

Instantly share code, notes, and snippets.

@codebrainz
Created July 27, 2025 21:44
Show Gist options
  • Save codebrainz/4322024b594f6ebc52876559aa9f7632 to your computer and use it in GitHub Desktop.
Save codebrainz/4322024b594f6ebc52876559aa9f7632 to your computer and use it in GitHub Desktop.
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to QEMU GDB Server",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/kernel.elf",
"cwd": "${workspaceFolder}",
"MIMode": "gdb",
"miDebuggerPath": "!!!SET PATH HERE!!!/bin/aarch64-none-elf-gdb",
"miDebuggerServerAddress": "localhost:1234",
"targetArchitecture": "arm64",
"externalConsole": false,
"stopAtEntry": true,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set sysroot if needed",
"text": "set sysroot /",
"ignoreFailures": true
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment