ruby-debug-base19x 0.11.30.pre6 → 0.11.30.pre7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/ext/ruby_debug/ruby_debug.c +10 -6
  2. metadata +10 -10
@@ -9,7 +9,7 @@
9
9
  #include <insns_info.inc>
10
10
  #include "ruby_debug.h"
11
11
 
12
- #define DEBUG_VERSION "0.11.30.pre6"
12
+ #define DEBUG_VERSION "0.11.30.pre7"
13
13
 
14
14
  #define FRAME_N(n) (&debug_context->frames[debug_context->stack_size-(n)-1])
15
15
  #define GET_FRAME (FRAME_N(check_frame_number(debug_context, frame)))
@@ -229,10 +229,10 @@ threads_table_mark_keyvalue(st_data_t key, st_data_t value, st_data_t tbl)
229
229
  }
230
230
  rb_gc_mark((VALUE)value);
231
231
  if (is_living_thread(thread)) {
232
- rb_gc_mark(thread);
232
+ rb_gc_mark(thread);
233
233
  }
234
234
  else {
235
- st_insert((st_table *)tbl, key, 0);
235
+ st_insert((st_table *)tbl, key, 0);
236
236
  }
237
237
  return ST_CONTINUE;
238
238
  }
@@ -431,7 +431,7 @@ thread_context_lookup(VALUE thread, VALUE *context, debug_context_t **debug_cont
431
431
  }
432
432
  thread_id = ref2id(thread);
433
433
  Data_Get_Struct(rdebug_threads_tbl, threads_table_t, threads_table);
434
- if(!st_lookup(threads_table->tbl, thread_id, context))
434
+ if(!st_lookup(threads_table->tbl, thread_id, context) || !*context)
435
435
  {
436
436
  if (create)
437
437
  {
@@ -1213,10 +1213,14 @@ debug_stop(VALUE self)
1213
1213
  }
1214
1214
 
1215
1215
  static int
1216
- find_last_context_func(VALUE key, VALUE value, VALUE *result)
1216
+ find_last_context_func(st_data_t key, st_data_t value, st_data_t result_arg)
1217
1217
  {
1218
1218
  debug_context_t *debug_context;
1219
- Data_Get_Struct(value, debug_context_t, debug_context);
1219
+ VALUE *result = (VALUE *)result_arg;
1220
+ if(!value) {
1221
+ return ST_CONTINUE;
1222
+ }
1223
+ Data_Get_Struct((VALUE)value, debug_context_t, debug_context);
1220
1224
  if(debug_context->thnum == last_debugged_thnum)
1221
1225
  {
1222
1226
  *result = value;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-debug-base19x
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.30.pre6
4
+ version: 0.11.30.pre7
5
5
  prerelease: 8
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-13 00:00:00.000000000Z
12
+ date: 2012-01-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: columnize
16
- requirement: &70171592485580 !ruby/object:Gem::Requirement
16
+ requirement: &70115379866100 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.3.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70171592485580
24
+ version_requirements: *70115379866100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: ruby_core_source
27
- requirement: &70171592485100 !ruby/object:Gem::Requirement
27
+ requirement: &70115379865620 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.1.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70171592485100
35
+ version_requirements: *70115379865620
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: linecache19
38
- requirement: &70171592484620 !ruby/object:Gem::Requirement
38
+ requirement: &70115379865140 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.5.11
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70171592484620
46
+ version_requirements: *70115379865140
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
- requirement: &70171592484160 !ruby/object:Gem::Requirement
49
+ requirement: &70115379864680 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 0.8.1
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70171592484160
57
+ version_requirements: *70115379864680
58
58
  description: ! 'ruby-debug is a fast implementation of the standard Ruby debugger
59
59
  debug.rb.
60
60