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
Copy file name to clipboardExpand all lines: 99_Appendices/F_Debugging.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -198,9 +198,9 @@ While debugging with gdb, we may want to keep qemu hanging after a triple fault
198
198
199
199
### Qemu Monitor
200
200
201
-
Qemu monitor is a tool used to send complex commands to the qemu emulator, is useful to for example add/remove media images to the system, freeze/unfreeze the VM, and to inspect the state of the virtual machine without using an external debugger.
201
+
Qemu monitor is a tool used to send complex commands to the Qemu emulator, is useful to add/remove media images to the system, freeze/unfreeze the VM, and inspect the virtual machine's state without using an external debugger.
202
202
203
-
One way to start Qemu monitor on a unix system is using the following parameter when starting qemu:
203
+
One way to start Qemu monitor on a unix system is using the following parameter when starting Qemu:
This enables the monitor to listen on a specified port (ie, 45454). You can then connect to the QEMU monitor from another terminal or a remote machine (with networking setup) using Telnet:
223
+
224
+
```bash
225
+
telnet localhost 45454
226
+
```
227
+
228
+
Both of these will prompt with a shell similar to the following:
QEMU 6.1.0 monitor - type'help'for more information
220
232
(qemu)
221
-
222
233
```
223
234
224
-
From here is possible to send commands directly to the emulator, below a list of useful commands:
235
+
Once the monitor is running, it is possible to send commands directly to the emulator, below is a list of useful commands:
225
236
226
-
*`help`Well this is the first command to get some help on how to use the monitor.
227
-
*`info xxxx` It will print several information, depending on xxxx for example: `info lapic` will show the current status of the local apic, `info mem` will print current virtual memory mappings, `info registers` will print the registers content.
237
+
*`help`This is the first command to get some help using the monitor.
238
+
*`info xxxx` It will print information, depending on xxxx for example: `info lapic` will show the current status of the local apic, `info mem` will print current virtual memory mappings, `info registers` will print the content of the registers.
228
239
*`x /cf address` where c is the number of items we want to display in decimal, f is the format (`x` for hex, `c` for char, etc) display the content of c virtual memory locations starting from address.
229
240
*`xp /cf address` same as above, but for physical memory.
0 commit comments