Skip to content

Commit

Permalink
Merge pull request #33 from equivalence1/ruby-attach-to-process
Browse files Browse the repository at this point in the history
this should fix build issues
  • Loading branch information
denofevil committed Nov 9, 2016
2 parents f757e3f + 92324fd commit 49845dd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions ext/attach/attach.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,13 @@ debase_rb_eval(const char *string_to_eval)
{
rb_eval_string_protect(string_to_eval, NULL);
}

void
Init_attach()
{
/*
The only purpose of this library is to be dlopen'ed inside
gdb/lldb. So no initialization here, you should directly
call functions above.
*/
}
4 changes: 3 additions & 1 deletion ext/debase_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
return value;
}

static void
static VALUE
Debase_init_variables()
{
started = 0;
Expand All @@ -649,6 +649,8 @@ Debase_init_variables()

context_init_variables();
breakpoint_init_variables();

return Qtrue;
}

/*
Expand Down

0 comments on commit 49845dd

Please sign in to comment.