Skip to content

Commit f83a578

Browse files
author
Daniel Balla
committed
Fix possible failure in backtrace info
Make sure to ignore static snapshots when sending backtrace information to the debugger. JerryScript-DCO-1.0-Signed-off-by: Daniel Balla dballa@inf.u-szeged.hu
1 parent 22b0851 commit f83a578

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jerry-core/debugger/debugger.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ jerry_debugger_send_backtrace (const uint8_t *recv_buffer_p) /**< pointer to the
160160

161161
while (frame_ctx_p != NULL && min_depth_offset++ < max_depth)
162162
{
163-
if (frame_ctx_p->bytecode_header_p->status_flags & CBC_CODE_FLAGS_DEBUGGER_IGNORE)
163+
if (frame_ctx_p->bytecode_header_p->status_flags
164+
& (CBC_CODE_FLAGS_DEBUGGER_IGNORE | CBC_CODE_FLAGS_STATIC_FUNCTION))
164165
{
165166
frame_ctx_p = frame_ctx_p->prev_context_p;
166167
continue;

0 commit comments

Comments
 (0)