@@ -4106,8 +4106,9 @@ aot_frame_update_profile_info(WASMExecEnv *exec_env, bool alloc_frame)
4106
4106
4107
4107
#if WAMR_ENABLE_COPY_CALLSTACK != 0
4108
4108
uint32
4109
- aot_copy_callstack_tiny_frame (WASMExecEnv * exec_env , wasm_frame_t * buffer ,
4110
- const uint32 length , const uint32 skip_n , char * error_buf , uint32 error_buf_size )
4109
+ aot_copy_callstack_tiny_frame (WASMExecEnv * exec_env , wasm_frame_t * buffer ,
4110
+ const uint32 length , const uint32 skip_n ,
4111
+ char * error_buf , uint32 error_buf_size )
4111
4112
{
4112
4113
/*
4113
4114
* Note for devs: please refrain from such modifications inside of
@@ -4127,14 +4128,15 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
4127
4128
bool is_top_index_in_range =
4128
4129
top_boundary >= top && top >= (bottom + sizeof (AOTTinyFrame ));
4129
4130
if (!is_top_index_in_range ) {
4130
- char * err_msg = "Top of the stack pointer is outside of the stack boundaries" ;
4131
+ char * err_msg =
4132
+ "Top of the stack pointer is outside of the stack boundaries" ;
4131
4133
strncpy (error_buf , err_msg , error_buf_size );
4132
4134
return 0 ;
4133
4135
}
4134
4136
bool is_top_aligned_with_bottom =
4135
4137
(unsigned long )(top - bottom ) % sizeof (AOTTinyFrame ) == 0 ;
4136
4138
if (!is_top_aligned_with_bottom ) {
4137
- char * err_msg = "Top of the stack is not aligned with the bottom" ;
4139
+ char * err_msg = "Top of the stack is not aligned with the bottom" ;
4138
4140
strncpy (error_buf , err_msg , error_buf_size );
4139
4141
return 0 ;
4140
4142
}
@@ -4159,9 +4161,9 @@ aot_copy_callstack_tiny_frame(WASMExecEnv *exec_env, wasm_frame_t* buffer,
4159
4161
}
4160
4162
4161
4163
uint32
4162
- aot_copy_callstack_standard_frame (WASMExecEnv * exec_env ,
4163
- wasm_frame_t * buffer , const uint32 length ,
4164
- const uint32 skip_n , char * error_buf , uint32_t error_buf_size )
4164
+ aot_copy_callstack_standard_frame (WASMExecEnv * exec_env , wasm_frame_t * buffer ,
4165
+ const uint32 length , const uint32 skip_n ,
4166
+ char * error_buf , uint32_t error_buf_size )
4165
4167
{
4166
4168
/*
4167
4169
* Note for devs: please refrain from such modifications inside of
@@ -4208,8 +4210,9 @@ aot_copy_callstack_standard_frame(WASMExecEnv *exec_env,
4208
4210
}
4209
4211
4210
4212
uint32
4211
- aot_copy_callstack (WASMExecEnv * exec_env , wasm_frame_t * buffer ,
4212
- const uint32 length , const uint32 skip_n , char * error_buf , uint32_t error_buf_size )
4213
+ aot_copy_callstack (WASMExecEnv * exec_env , wasm_frame_t * buffer ,
4214
+ const uint32 length , const uint32 skip_n , char * error_buf ,
4215
+ uint32_t error_buf_size )
4213
4216
{
4214
4217
/*
4215
4218
* Note for devs: please refrain from such modifications inside of
@@ -4221,11 +4224,12 @@ aot_copy_callstack(WASMExecEnv *exec_env, wasm_frame_t* buffer,
4221
4224
* wasm_export.h
4222
4225
*/
4223
4226
if (!is_tiny_frame (exec_env )) {
4224
- return aot_copy_callstack_standard_frame (exec_env , buffer , length ,
4225
- skip_n , error_buf , error_buf_size );
4227
+ return aot_copy_callstack_standard_frame (
4228
+ exec_env , buffer , length , skip_n , error_buf , error_buf_size );
4226
4229
}
4227
4230
else {
4228
- return aot_copy_callstack_tiny_frame (exec_env , buffer , length , skip_n , error_buf , error_buf_size );
4231
+ return aot_copy_callstack_tiny_frame (exec_env , buffer , length , skip_n ,
4232
+ error_buf , error_buf_size );
4229
4233
}
4230
4234
}
4231
4235
#endif // WAMR_ENABLE_COPY_CALLSTACK
0 commit comments