@@ -88,8 +88,6 @@ jerry_debugger_send_backtrace (uint8_t *recv_buffer_p) /**< pointer to the recei
88
88
89
89
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_backtrace_t , backtrace_p );
90
90
91
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (backtrace_p );
92
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (backtrace_p , jerry_debugger_send_backtrace_t );
93
91
backtrace_p -> type = JERRY_DEBUGGER_BACKTRACE ;
94
92
95
93
vm_frame_ctx_t * frame_ctx_p = JERRY_CONTEXT (vm_top_context_p );
@@ -129,7 +127,6 @@ jerry_debugger_send_backtrace (uint8_t *recv_buffer_p) /**< pointer to the recei
129
127
130
128
size_t message_size = current_frame * sizeof (jerry_debugger_frame_t );
131
129
132
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE (backtrace_p , 1 + message_size );
133
130
backtrace_p -> type = JERRY_DEBUGGER_BACKTRACE_END ;
134
131
135
132
jerry_debugger_send (sizeof (jerry_debugger_send_type_t ) + message_size );
@@ -686,8 +683,6 @@ jerry_debugger_breakpoint_hit (uint8_t message_type) /**< message type */
686
683
687
684
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_breakpoint_hit_t , breakpoint_hit_p );
688
685
689
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (breakpoint_hit_p );
690
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (breakpoint_hit_p , jerry_debugger_send_breakpoint_hit_t );
691
686
breakpoint_hit_p -> type = message_type ;
692
687
693
688
vm_frame_ctx_t * frame_ctx_p = JERRY_CONTEXT (vm_top_context_p );
@@ -734,8 +729,6 @@ jerry_debugger_send_type (jerry_debugger_header_type_t type) /**< message type *
734
729
735
730
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_type_t , message_type_p );
736
731
737
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (message_type_p );
738
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (message_type_p , jerry_debugger_send_type_t );
739
732
message_type_p -> type = (uint8_t ) type ;
740
733
741
734
jerry_debugger_send (sizeof (jerry_debugger_send_type_t ));
@@ -762,8 +755,6 @@ jerry_debugger_send_configuration (uint8_t max_message_size) /**< maximum messag
762
755
763
756
endian_data .uint16_value = 1 ;
764
757
765
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (configuration_p );
766
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (configuration_p , jerry_debugger_send_configuration_t );
767
758
configuration_p -> type = JERRY_DEBUGGER_CONFIGURATION ;
768
759
configuration_p -> max_message_size = max_message_size ;
769
760
configuration_p -> cpointer_size = sizeof (jmem_cpointer_t );
@@ -785,8 +776,6 @@ jerry_debugger_send_data (jerry_debugger_header_type_t type, /**< message type *
785
776
786
777
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_type_t , message_type_p );
787
778
788
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (message_type_p );
789
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE (message_type_p , 1 + size );
790
779
message_type_p -> type = type ;
791
780
memcpy (message_type_p + 1 , data , size );
792
781
@@ -811,8 +800,6 @@ jerry_debugger_send_string (uint8_t message_type, /**< message type */
811
800
812
801
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_string_t , message_string_p );
813
802
814
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (message_string_p );
815
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (message_string_p , jerry_debugger_send_string_t );
816
803
message_string_p -> type = message_type ;
817
804
818
805
while (string_length > max_fragment_len )
@@ -833,7 +820,6 @@ jerry_debugger_send_string (uint8_t message_type, /**< message type */
833
820
string_length += 1 ;
834
821
}
835
822
836
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE (message_string_p , 1 + string_length );
837
823
message_string_p -> type = (uint8_t ) (message_type + 1 );
838
824
839
825
memcpy (message_string_p -> string , string_p , string_length );
@@ -859,8 +845,6 @@ jerry_debugger_send_function_cp (jerry_debugger_header_type_t type, /**< message
859
845
860
846
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_byte_code_cp_t , byte_code_cp_p );
861
847
862
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (byte_code_cp_p );
863
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (byte_code_cp_p , jerry_debugger_send_byte_code_cp_t );
864
848
byte_code_cp_p -> type = (uint8_t ) type ;
865
849
866
850
jmem_cpointer_t compiled_code_cp ;
@@ -884,8 +868,6 @@ jerry_debugger_send_parse_function (uint32_t line, /**< line */
884
868
885
869
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_parse_function_t , message_parse_function_p );
886
870
887
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (message_parse_function_p );
888
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (message_parse_function_p , jerry_debugger_send_parse_function_t );
889
871
message_parse_function_p -> type = JERRY_DEBUGGER_PARSE_FUNCTION ;
890
872
memcpy (message_parse_function_p -> line , & line , sizeof (uint32_t ));
891
873
memcpy (message_parse_function_p -> column , & column , sizeof (uint32_t ));
@@ -902,8 +884,6 @@ jerry_debugger_send_memstats (void)
902
884
JERRY_ASSERT (JERRY_CONTEXT (debugger_flags ) & JERRY_DEBUGGER_CONNECTED );
903
885
904
886
JERRY_DEBUGGER_SEND_BUFFER_AS (jerry_debugger_send_memstats_t , memstats_p );
905
- JERRY_DEBUGGER_INIT_SEND_MESSAGE (memstats_p );
906
- JERRY_DEBUGGER_SET_SEND_MESSAGE_SIZE_FROM_TYPE (memstats_p , jerry_debugger_send_memstats_t );
907
887
908
888
memstats_p -> type = JERRY_DEBUGGER_MEMSTATS_RECEIVE ;
909
889
0 commit comments