Skip to content

Instantly share code, notes, and snippets.

@yifeiyin
Created July 27, 2020 20:21
Show Gist options
  • Save yifeiyin/cb0ad4045b8c3145c94f785628647973 to your computer and use it in GitHub Desktop.
Save yifeiyin/cb0ad4045b8c3145c94f785628647973 to your computer and use it in GitHub Desktop.
Pintos, GDB, Load Macros
  1. Create a file at pintos/gdb-c with one line as the content:
gdb -x /pintos/src/misc/gdb-macros $@
  1. In the pintos shell, make the new file executable:
$ chmod +x /pintos/gdb-c
  1. Modify .vscode/launch.json to use the new executable instead of gdb:
...
"configurations": [
  {
    ...
    "gdbpath": "/pintos/gdb-c",    <<< Add this line
    ...
  }
...

References:

Bug in the VSCode extension: WebFreak001/code-debug#206

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment