Open
Description
Maybe you can read the source of qemu.
Actually there are two state in gdb. Which are RUNNING and !RUNNING.
- The interrupt packet is special. It only need to be handled in RUNNING state. When the interrupt packet is received in RUNNING state, the vm should be stopped and gdb will transfer to !RUNNING state.
- On the other hand, the normal packet only need to be handled in !RUNNING state. There's no need to handle normal packet in RUNNING state. It doesn't make any sense.
So there's no need to put conn_try_recv_intr to another thread. Just handle the packet in corresponding state in one thread.
Metadata
Metadata
Assignees
Labels
No labels