mirror of
https://github.com/ipxe/ipxe
synced 2025-12-21 20:40:25 +03:00
[GDB] Handle kill and detach packets.
This commit also includes a test to ensure that single stepping works, since continue, kill, detach, and single step all share code.
This commit is contained in:
committed by
Michael Brown
parent
27731d975e
commit
59b5465b30
@@ -235,11 +235,14 @@ static void gdbstub_rx_packet ( struct gdbstub *stub ) {
|
||||
case 'M':
|
||||
gdbstub_write_mem ( stub );
|
||||
break;
|
||||
case 'c':
|
||||
gdbstub_continue ( stub, 0 );
|
||||
break;
|
||||
case 's':
|
||||
gdbstub_continue ( stub, 1 );
|
||||
case 'c': /* Continue */
|
||||
case 'k': /* Kill */
|
||||
case 's': /* Step */
|
||||
case 'D': /* Detach */
|
||||
gdbstub_continue ( stub, stub->payload [ 0 ] == 's' );
|
||||
if ( stub->payload [ 0 ] == 'D' ) {
|
||||
gdbstub_send_ok ( stub );
|
||||
}
|
||||
break;
|
||||
default:
|
||||
stub->len = 0;
|
||||
|
||||
Reference in New Issue
Block a user