From: bernie Date: Thu, 27 Apr 2006 05:40:27 +0000 (+0000) Subject: Break on assertion failures. X-Git-Tag: 1.0.0~643 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=7cdf81c108da99a05becc875182cee065167e91c;p=bertos.git Break on assertion failures. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@598 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/drv/kdebug.c b/drv/kdebug.c index 50271150..1bf07e43 100755 --- a/drv/kdebug.c +++ b/drv/kdebug.c @@ -15,6 +15,9 @@ /*#* *#* $Log$ + *#* Revision 1.26 2006/04/27 05:40:27 bernie + *#* Break on assertion failures. + *#* *#* Revision 1.25 2005/06/27 21:26:24 bernie *#* Misc PGM fixes. *#* @@ -347,6 +350,7 @@ int PGM_FUNC(__assert)(const char * PGM_ATTR cond, const char * PGM_ATTR file, i PGM_FUNC(kputs)(PGM_STR("Assertion failed: ")); PGM_FUNC(kputs)(cond); kputchar('\n'); + BREAKPOINT; return 1; }