summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorStefan Hajnoczi2008-06-05 16:31:48 +0200
committerMichael Brown2008-06-30 20:19:48 +0200
commit59b5465b30733dcd457698606b6de7cf31a3882d (patch)
treeb8d901a0eac8eb805cc687d8883d9ee5b81a7195 /src/core
parent[romprefix] Fix PMM detection start address (diff)
downloadipxe-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.c13
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;