aboutsummaryrefslogtreecommitdiff
path: root/.vscode/launch.json
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@ost.ch>2025-12-15 17:13:12 +0100
committerFelix Morgner <felix.morgner@ost.ch>2025-12-15 17:13:12 +0100
commit7b9482ae637126ac9337876e60f519b493437711 (patch)
tree6fc71a253c8b0325d303bd34c95b564ba536ed14 /.vscode/launch.json
parent116f9332a206767c45095950f09f7c7447b561cf (diff)
parenta9eeec745e29d89afd48ee43d09432eb6fc35be7 (diff)
downloadteachos-7b9482ae637126ac9337876e60f519b493437711.tar.xz
teachos-7b9482ae637126ac9337876e60f519b493437711.zip
os: rework kernel architecture
Rework the code structure and architecture of the kernel by separating platform-dependent and platform-independent code more cleanly. As of this patchset, full feature parity has not been achieved. Nonetheless, a sufficient subset of functionality has been ported to the new architecture to demonstrate the feasibility of the new structure.
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json31
1 files changed, 21 insertions, 10 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index e522ad5..6478c96 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -3,18 +3,29 @@
"configurations": [
{
"name": "(gdb) QEMU",
- "type": "gdb",
- "request": "attach",
- "remote": true,
- "target": "localhost:1234",
- "valuesFormatting": "prettyPrinters",
- "gdbpath": "x86_64-pc-elf-gdb",
+ "type": "cppdbg",
+ "request": "launch",
"cwd": "${workspaceFolder}",
+ "stopAtEntry": true,
+ "miDebuggerServerAddress": "localhost:1234",
+ "miDebuggerPath": "x86_64-pc-elf-gdb",
"preLaunchTask": "QEMU (gdb)",
- "executable": "${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/_kernel",
- "autorun": [
- "-enable-pretty-printing",
- "-break-insert _start"
+ "MIMode": "gdb",
+ "program": "${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.sym",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for gdb",
+ "text": "-enable-pretty-printing",
+ "ignoreFailures": true
+ },
+ {
+ "description": "Load code",
+ "text": "-file-exec-file ${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.elf"
+ },
+ {
+ "description": "Load symbols",
+ "text": "-file-exec-and-symbols ${command:cmake.buildDirectory}/bin/${command:cmake.buildType}/kernel.sym"
+ }
]
}
]