Explorar o código

added debugger eval (globals and registers)

Nicolas Cannasse %!s(int64=7) %!d(string=hai) anos
pai
achega
3b11942e09
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/debugger.c

+ 7 - 1
src/debugger.c

@@ -65,8 +65,14 @@ static void hl_debug_loop( hl_module *m ) {
 		send(&m->jit_code,sizeof(void*));
 		send(&m->codesize,4);
 		send(&m->code->types,sizeof(void*));
-		send(&m->code->nfunctions,4);
 
+		for(i=1;i<=HBYTES;i++) {
+			hl_type t = {(hl_type_kind)i};
+			int k = 1 + hl_pad_struct(1,&t);
+			send(&k,4);
+		}
+
+		send(&m->code->nfunctions,4);
 		for(i=0;i<m->code->nfunctions;i++) {
 			hl_function *f = m->code->functions + i;
 			hl_debug_infos *d = m->jit_debug + i;