Browse Source

added SetThreadName support to debugger + minor fixes

ncannasse 7 years ago
parent
commit
dd756dc9c1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/std/debug.c

+ 3 - 0
src/std/debug.c

@@ -117,6 +117,9 @@ HL_API int hl_debug_wait( int pid, int *thread, int timeout ) {
 		case EXCEPTION_SINGLE_STEP:
 		case 0x4000001E: // STATUS_WX86_SINGLE_STEP
 			return 2;
+		case 0x406D1388: // MS_VC_EXCEPTION (see SetThreadName)
+			ContinueDebugEvent(e.dwProcessId, e.dwThreadId, DBG_CONTINUE);
+			break;
 		default:
 			return 3;
 		}