Ver Fonte

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

Nicolas Cannasse há 8 anos atrás
pai
commit
d1b3724706
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      src/debugger.c

+ 4 - 1
src/debugger.c

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