From 10c458cc3bca696f962c6024aeaf60695f4cd511 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Fri, 9 Sep 2016 14:09:50 +0000 Subject: [PATCH] Fix stopping when the specified breakpoint count is reached. The countdown was done correctly, but the action when the count was not reduced to 0 was to fall through to generic code which almost always stopped. --- sys/ddb/db_run.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c index 5e42d745e16..bb7c3be8798 100644 --- a/sys/ddb/db_run.c +++ b/sys/ddb/db_run.c @@ -125,6 +125,7 @@ db_stop_at_pc(bool *is_breakpoint) *is_breakpoint = true; return (true); /* stop here */ } + return (false); /* continue the countdown */ } else if (*is_breakpoint) { #ifdef BKPT_SKIP BKPT_SKIP;