summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2007-10-08 15:06:26 +0000
committermartin <martin@NetBSD.org>2007-10-08 15:06:26 +0000
commitcd2cd2dd638b92de06aa8e87a8949cb72120bbd1 (patch)
tree9d0507cf67f92e4592a7890420b3d38aa121ffae /sys/ddb/db_command.c
parent82f39f6568d2f8f587ff8b2764163d18947af8dd (diff)
Do another setjmp right before entering the command loop, we do not want
to execute the on-enter commands again on errors.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index 5b0cde0a1c3..8b17bd2d544 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.105 2007/10/02 08:47:26 martin Exp $ */
+/* $NetBSD: db_command.c,v 1.106 2007/10/08 15:06:26 martin Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
@@ -65,7 +65,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.105 2007/10/02 08:47:26 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.106 2007/10/08 15:06:26 martin Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -552,6 +552,7 @@ db_command_loop(void)
/*Execute default ddb start commands*/
db_execute_commandlist(db_cmd_on_enter);
+ (void) setjmp(&db_jmpbuf);
while (!db_cmd_loop_done) {
if (db_print_position() != 0)
db_printf("\n");