File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
tests/integration_tests/build Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 1
1
# GDB Debugging with Firecracker
2
2
3
+ ** The GDB feature is not for production use.**
4
+
3
5
Firecracker supports debugging the guest kernel via GDB remote serial protocol.
4
6
This allows us to connect GDB to the firecracker process and step through debug
5
- the guest kernel. Currently only debugging on x86 is supported.
7
+ the guest kernel.
6
8
7
9
The GDB feature requires Firecracker to be booted with a config file.
8
10
9
11
## Prerequisites
10
12
11
- Firstly, to enable GDB debugging we need to compile Firecracker with the ` debug `
13
+ Firstly, to enable GDB debugging we need to compile Firecracker with the ` gdb `
12
14
feature enabled, this will enable the necessary components for the debugging
13
15
process.
14
16
@@ -102,9 +104,14 @@ command in the GDB session which will terminate both.
102
104
mitigated by setting these kernel config values:
103
105
104
106
```
105
- CONFIG_SCHED_MC=y
106
- CONFIG_SCHED_MC_PRIO=y
107
+ CONFIG_SCHED_MC=n
108
+ CONFIG_SCHED_MC_PRIO=n
107
109
```
108
110
109
111
- Currently we support a limited subset of cpu registers for get and set
110
112
operations, if more are required feel free to contribute.
113
+
114
+ - On ARM the guest virtual address translation will only work on guests with 4kb
115
+ pages and not all physical address sizes are supported. If the current
116
+ translation implementation doesn't cover a specific setup, feel free to
117
+ contribute.
Original file line number Diff line number Diff line change 4
4
5
5
import platform
6
6
7
- import pytest
8
-
9
7
import host_tools .cargo_build as host
10
8
11
9
MACHINE = platform .machine ()
12
10
TARGET = "{}-unknown-linux-musl" .format (MACHINE )
13
11
14
12
15
- @pytest .mark .skipif (MACHINE != "x86_64" , reason = "GDB runs only on x86_64." )
16
13
def test_gdb_compiles ():
17
14
"""Checks that Firecracker compiles with GDB enabled"""
18
15
You can’t perform that action at this time.
0 commit comments