瀏覽代碼

make debugger thread invisible

Nicolas Cannasse 7 年之前
父節點
當前提交
6ebce9f0f3
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/debugger.c
  2. 1 0
      src/hl.h

+ 1 - 0
src/debugger.c

@@ -58,6 +58,7 @@ static void hl_debug_loop( hl_module *m ) {
 	flags |= 4;
 	loop = true;
 #	endif
+	hl_get_thread()->exc_flags |= HL_THREAD_INVISIBLE;
 	do {
 		int i;
 		vbyte cmd;

+ 1 - 0
src/hl.h

@@ -807,6 +807,7 @@ struct _hl_trap_ctx {
 #define HL_EXC_CATCH_ALL	2
 #define HL_EXC_IS_THROW		4
 #define HL_TRACK_DISABLE	8
+#define HL_THREAD_INVISIBLE	16
 
 typedef struct {
 	int thread_id;