From a18c6f87dee3ebf0432a6f7a633272423718faf2 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 8 Oct 2023 12:23:11 +0200 Subject: x86_64: improve debugging experience --- .vscode/launch.json | 34 +++++++++++++++++++++++++--------- 1 file changed, 25 insertions(+), 9 deletions(-) (limited to '.vscode/launch.json') diff --git a/.vscode/launch.json b/.vscode/launch.json index 8c56401..81bf456 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,14 +1,30 @@ { "version": "0.2.0", "configurations": [ - { - "name": "(gdb) Attach to QEmu", - "request": "attach", - "type": "gdb", - "executable": "${workspaceFolder}/build/Debug/bin/kernel", - "target": "127.0.0.1:1234", - "remote": true, - "cwd": "${workspaceFolder}", - } + { + "name": "(gdb) QEMU", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/Debug/bin/kernel", + "MIMode": "gdb", + "miDebuggerServerAddress": "localhost:1234", + "cwd": "${workspaceFolder}", + "stopAtEntry": true, + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Load file", + "text": "-file-exec-and-symbols ${workspaceFolder}/build/Debug/bin/kernel" + }, + { + "description": "Set breakpoint on _start", + "text": "-break-insert _start" + } + ] + } ] } \ No newline at end of file -- cgit v1.2.3