1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) QEMU",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/bin/${input:build_type}/_kernel",
"MIMode": "gdb",
"miDebuggerServerAddress": "localhost:1234",
"cwd": "${workspaceFolder}",
"stopAtEntry": true,
"preLaunchTask": "QEMU (gdb)",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Load file",
"text": "-file-exec-and-symbols ${workspaceFolder}/build/bin/${input:build_type}/_kernel"
},
{
"description": "Set breakpoint on _start",
"text": "-break-insert _start"
},
{
"description": "Set breakpoint on reload_segment_register_trampoline",
"text": "-break-insert reload_segment_register_trampoline"
}
]
}
],
"inputs": [
{
"id": "build_type",
"type": "pickString",
"default": "Debug",
"description": "The build type to boot",
"options": [
"Debug",
"MinSizeRel"
]
}
]
}
|