You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Dumping the guest state to an ELF core dump when an unhandled crash occurs
207
+
208
+
When a guest crashes, the vCPU state is dumped to an `ELF` core dump file. This can be used to inspect the state of the guest at the time of the crash.
209
+
210
+
To dump the state of the vCPU (general purpose registers, registers) to an `ELF` core dump file set the feature `crashdump` and run a debug build. This will result in a dump file being created in the temporary directory.
211
+
The name and location of the dump file will be printed to the console and logged as an error message.
212
+
213
+
### Inspecting the core dump
214
+
215
+
After the core dump has been created, to inspect the state of the guest, load the core dump file using `gdb` or `lldb`.
216
+
A `gdb` version later than `15.0` and `lldb` version later than `17` have been used to test this feature.
217
+
218
+
To do this in vscode, the following configuration can be used to add debug configurations:
0 commit comments