New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update for current version #14

merged 25 commits into from Oct 8, 2011
Jump to file or symbol
Failed to load files and symbols.
+7 −6
Diff settings


Just for now

Viewing a subset of changes. View all

arguments of st_foreach callback are st_data_t.

  • Loading branch information...
nobu committed Sep 16, 2011
commit 0ec55267989bf8002f55ae1e14388e09642fccd7
@@ -254,7 +254,7 @@ threads_table_create(void)
static int
threads_table_clear_i(VALUE key, VALUE value, VALUE dummy)
threads_table_clear_i(st_data_t key, st_data_t value, st_data_t dummy)
return ST_DELETE;
@@ -277,11 +277,11 @@ is_thread_alive(VALUE thread)
static int
threads_table_check_i(VALUE key, VALUE value, VALUE dummy)
threads_table_check_i(st_data_t key, st_data_t value, st_data_t dummy)
VALUE thread;
thread = id2ref(key);
thread = id2ref((VALUE)key);
if(!rb_obj_is_kind_of(thread, rb_cThread))
return ST_DELETE;
@@ -740,7 +740,7 @@ call_at_line_check(VALUE self, debug_context_t *debug_context, VALUE breakpoint,
static int
set_thread_event_flag_i(st_data_t key, st_data_t val, st_data_t flag)
VALUE thval = key;
VALUE thval = (VALUE)key;
rb_thread_t *th;
GetThreadPtr(thval, th);
th->event_flags |= RUBY_EVENT_VM;
@@ -1310,10 +1310,11 @@ debug_stop(VALUE self)
static int
find_last_context_func(VALUE key, VALUE value, VALUE *result)
find_last_context_func(st_data_t key, st_data_t value, st_data_t result_arg)
debug_context_t *debug_context;
Data_Get_Struct(value, debug_context_t, debug_context);
VALUE *result = (VALUE *)result_arg;
Data_Get_Struct((VALUE)value, debug_context_t, debug_context);
if(debug_context->thnum == last_debugged_thnum)
*result = value;
ProTip! Use n and p to navigate between commits in a pull request.