ruby-debug-base19 0.11.17 → 0.11.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -383,7 +383,6 @@ debug_context_create(VALUE thread)
383
383
  debug_context->stack_size = 0;
384
384
  debug_context->thread_id = ref2id(thread);
385
385
  debug_context->breakpoint = Qnil;
386
- debug_context->stack = GET_THREAD()->stack;
387
386
  if(rb_obj_class(thread) == cDebugThread)
388
387
  CTX_FL_SET(debug_context, CTX_FL_IGNORE);
389
388
  return Data_Wrap_Struct(cContext, debug_context_mark, debug_context_free, debug_context);
@@ -758,7 +757,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
758
757
  locker = thread->self;
759
758
 
760
759
  /* make sure all threads have event flag set so we'll get its events */
761
- st_foreach(GET_VM()->living_threads, set_thread_event_flag_i, 0);
760
+ st_foreach(thread->vm->living_threads, set_thread_event_flag_i, 0);
762
761
 
763
762
  /* remove any frames that are now out of scope */
764
763
  while(debug_context->stack_size > 0)
@@ -1882,8 +1881,10 @@ context_copy_locals(debug_context_t *debug_context, debug_frame_t *debug_frame,
1882
1881
  iseq = cfp->block_iseq;
1883
1882
  if ((iseq != NULL) && (iseq->local_table != NULL) && (iseq != cfp->iseq))
1884
1883
  {
1884
+ rb_thread_t *th;
1885
1885
  rb_control_frame_t *block_frame = RUBY_VM_NEXT_CONTROL_FRAME(cfp);
1886
- while (block_frame > (rb_control_frame_t*)debug_context->stack)
1886
+ Data_Get_Struct(context_thread_0(debug_context), rb_thread_t, th);
1887
+ while (block_frame > (rb_control_frame_t*)th->stack)
1887
1888
  {
1888
1889
  if (block_frame->iseq == cfp->block_iseq)
1889
1890
  {
@@ -69,7 +69,6 @@ typedef struct {
69
69
  int last_line;
70
70
  VALUE breakpoint;
71
71
  debug_catch_t catch_table;
72
- VALUE *stack;
73
72
  } debug_context_t;
74
73
 
75
74
  /* variables in ruby_debug.c */
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-base19
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.17
4
+ version: 0.11.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kent Sibilev
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-28 00:00:00 -07:00
13
+ date: 2009-08-30 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency