Skip to content

Commit 10e9b0c

Browse files
committed
fixed wrong frame locations
1 parent 4fab06a commit 10e9b0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <insns_info.inc>
1010
#include "ruby_debug.h"
1111

12-
#define DEBUG_VERSION "0.11.25.jb2"
12+
#define DEBUG_VERSION "0.11.25.jb3"
1313

1414
#define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
1515
#define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -589,6 +589,7 @@ set_frame_source(rb_event_flag_t event, debug_context_t *debug_context, VALUE se
589589
top_frame = get_top_frame(debug_context);
590590
if(top_frame)
591591
{
592+
top_frame->info.runtime.cfp = GET_THREAD()->cfp;
592593
if (top_frame->info.runtime.block_iseq == GET_THREAD()->cfp->iseq)
593594
{
594595
top_frame->info.runtime.block_pc = GET_THREAD()->cfp->pc;

0 commit comments

Comments
 (0)