aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2002-12-17 05:55:36 +0000
committerNate Lawson <njl@FreeBSD.org>2002-12-17 05:55:36 +0000
commite38cfb14feb2fce4d2e68506661bc6afa7f59dd2 (patch)
tree6c7653974063a32510e2195242059d2545ca32c1 /sys/amd64
parent85994822dfe65cadeace905a82ad57258f12d35a (diff)
Notes
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/amd64-gdbstub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/amd64-gdbstub.c b/sys/amd64/amd64/amd64-gdbstub.c
index 863c676fe180e..fd283bd96f9a0 100644
--- a/sys/amd64/amd64/amd64-gdbstub.c
+++ b/sys/amd64/amd64/amd64-gdbstub.c
@@ -504,7 +504,7 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
case 'D': /* detach; say OK and turn off gdb */
putpacket(remcomOutBuffer);
boothowto &= ~RB_GDB;
- goto cont_exit;
+ return 0;
case 'g': /* return the value of the CPU registers */
mem2hex ((vm_offset_t)&registers, remcomOutBuffer, NUMREGBYTES);
@@ -579,7 +579,7 @@ gdb_handle_exception (db_regs_t *raw_regs, int type, int code)
if (hexToInt(&ptr,&addr))
registers.eip = addr;
-cont_exit:
+
/* set the trace bit if we're stepping */
if (remcomInBuffer[0] == 's')
registers.eflags |= PSL_T;