This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# INSIDE WSL, install gdb (one-time instruction) | |
sudo apt install gdb | |
# Add the following to your kernel Makefile CFLAGS, so that gcc will generate | |
# debug symbols that the debugger can use | |
# Note: The thing being added is -g, so as of lesson 12 it should look like this. | |
# Delete all the contents of the lib folder to force a recompile | |
CFLAGS = -ffreestanding -fshort-wchar -g | |
# Add the following to your qemu invocation and start QEmu: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Debug Kernel", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "${workspaceRoot}/kernel/bin/kernel.elf", | |
"args": [], | |
"stopAtEntry": false, |