Mark Sibly 8 years ago
parent
commit
a2a0426a83
2 changed files with 8 additions and 7 deletions
  1. 7 6
      modules/monkey/native/bbdebug.cpp
  2. 1 1
      modules/monkey/types.monkey2

+ 7 - 6
modules/monkey/native/bbdebug.cpp

@@ -30,8 +30,8 @@ namespace bbDB{
 		const char *err="Unknown signal";
 		switch( sig ){
 		case SIGSEGV:err="Memory access violation";break;
-		case SIGILL:err="Illegal instruction";
-		case SIGFPE:err="Floating point exception";
+		case SIGILL:err="Illegal instruction";break;
+		case SIGFPE:err="Floating point exception";break;
 #if !_WIN32
 		case SIGBUS:err="Bus error";
 #endif	
@@ -65,7 +65,7 @@ namespace bbDB{
 		    std::thread( [=](){
 		    	for( ;; ){
 		    		WaitForSingleObject( breakEvent,INFINITE );
-//	    			bb_printf( "Break event!\n" );fflush( stdout );
+//	    			bb_printf( "received Break event!\n" );fflush( stdout );
 					currentContext->stopped=1;
 		    	}
 		    } ).detach();
@@ -101,9 +101,10 @@ namespace bbDB{
 	}
 	
 	void stop(){
-		stopped();
-//		stepMode=0;
-//		stepnext=1;
+	
+		//currentContext->stopped=1;	//stop on *next* stmt.
+		
+		stopped();						//stop on DebugStop() stmt.
 	}
 	
 	void emit( const char *e ){

+ 1 - 1
modules/monkey/types.monkey2

@@ -511,7 +511,7 @@ Class @Object="bbObject"
 	#end
 	Property DynamicType:TypeInfo()="typeof"
 
-	#rem monkeydoc @deprecated: Use [[DynamicType]].
+	#rem monkeydoc @deprecated use [[DynamicType]].
 	#end
 	Property InstanceType:TypeInfo()="typeof"