forked from FlorentRevest/linux-kernel-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launch.json
102 lines (93 loc) · 3.12 KB
/
launch.json
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"version": "0.2.0",
"configurations": [
{
"name": "Start and debug kernel in a VM",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "Start virtual machine",
"internalConsoleOptions": "neverOpen",
"miDebuggerPath": "gdb-multiarch",
"miDebuggerServerAddress": "localhost:1234",
"setupCommands": [
{
"description": "Give some time for the VM to spin-up",
"text": "-interpreter-exec console \"shell ${workspaceFolder}/.vscode/tasks.sh wait-for-vm\"",
"ignoreFailures": false,
},
{
"description": "Enable autoloading of Linux GDB scripts",
"text": "add-auto-load-safe-path ${workspaceFolder}/scripts/gdb",
"ignoreFailures": true,
},
{
"description": "Format Locals as HEX by default",
"text": "set output-radix 16",
"ignoreFailures": true,
},
],
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/vmlinux",
"hardwareBreakpoints": { "require": true },
},
{
"name": "Start and debug kernel in a VM from early-boot",
"type": "cppdbg",
"request": "launch",
"preLaunchTask": "Start virtual machine waiting for debugger",
"internalConsoleOptions": "neverOpen",
"miDebuggerPath": "gdb-multiarch",
"miDebuggerServerAddress": "localhost:1234",
"setupCommands": [
{
"description": "Give some time for the VM to spin-up",
"text": "-interpreter-exec console \"shell ${workspaceFolder}/.vscode/tasks.sh wait-for-vm\"",
"ignoreFailures": true
},
{
"description": "Enable autoloading of Linux GDB scripts",
"text": "add-auto-load-safe-path ${workspaceFolder}/scripts/gdb",
"ignoreFailures": true,
},
{
"description": "Format Locals as HEX by default",
"text": "set output-radix 16",
"ignoreFailures": true,
},
],
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/vmlinux",
"hardwareBreakpoints": {
"require": true,
},
},
{
"name": "Debug kernel in an already-running VM",
"type": "cppdbg",
"request": "launch",
"internalConsoleOptions": "neverOpen",
"miDebuggerPath": "gdb-multiarch",
"miDebuggerServerAddress": "localhost:1234",
"setupCommands": [
{
"description": "Wait for the VM to spin-up",
"text": "-interpreter-exec console \"shell ${workspaceFolder}/.vscode/tasks.sh wait-for-vm\"",
"ignoreFailures": false,
},
{
"description": "Enable autoloading of Linux GDB scripts",
"text": "add-auto-load-safe-path ${workspaceFolder}/scripts/gdb",
"ignoreFailures": true,
},
{
"description": "Format Locals as HEX by default",
"text": "set output-radix 16",
"ignoreFailures": true,
},
],
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/vmlinux",
"hardwareBreakpoints": { "require": true },
}
]
}