Explorar o código

remove breakpoint, runtime type reading, virtual/dynobj field access

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

+ 4 - 1
src/debugger.c

@@ -53,7 +53,7 @@ static void hl_debug_loop( hl_module *m ) {
 #	endif
 	if( sizeof(bool) == 4 ) flags |= 2;
 	while( true ) {
-		int i;
+		int i, sz;
 		vbyte cmd;
 		hl_socket *s = hl_socket_accept(debug_socket);
 		client_socket = s;
@@ -64,6 +64,9 @@ static void hl_debug_loop( hl_module *m ) {
 		send(&stack_top,sizeof(void*));
 		send(&m->jit_code,sizeof(void*));
 		send(&m->codesize,4);
+		send(&m->code->types,sizeof(void*));
+		sz = sizeof(hl_type);
+		send(&sz, 4);
 		send(&m->code->nfunctions,4);
 
 		for(i=0;i<m->code->nfunctions;i++) {