diff options
author | Stefan Hajnoczi | 2008-06-05 16:31:48 +0200 |
---|---|---|
committer | Michael Brown | 2008-06-30 20:19:48 +0200 |
commit | 59b5465b30733dcd457698606b6de7cf31a3882d (patch) | |
tree | b8d901a0eac8eb805cc687d8883d9ee5b81a7195 /src/core | |
parent | [romprefix] Fix PMM detection start address (diff) | |
download | ipxe-59b5465b30733dcd457698606b6de7cf31a3882d.tar.gz ipxe-59b5465b30733dcd457698606b6de7cf31a3882d.tar.xz ipxe-59b5465b30733dcd457698606b6de7cf31a3882d.zip |
[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.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gdbstub.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/core/gdbstub.c b/src/core/gdbstub.c index 213887b5..544595e6 100644 --- a/src/core/gdbstub.c +++ b/src/core/gdbstub.c @@ -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; |