Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Sep 2016 14:09:50 +0000 (UTC)
From:      Bruce Evans <bde@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r305663 - head/sys/ddb
Message-ID:  <201609091409.u89E9oXI010360@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bde
Date: Fri Sep  9 14:09:50 2016
New Revision: 305663
URL: https://svnweb.freebsd.org/changeset/base/305663

Log:
  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.

Modified:
  head/sys/ddb/db_run.c

Modified: head/sys/ddb/db_run.c
==============================================================================
--- head/sys/ddb/db_run.c	Fri Sep  9 13:27:20 2016	(r305662)
+++ head/sys/ddb/db_run.c	Fri Sep  9 14:09:50 2016	(r305663)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609091409.u89E9oXI010360>