Skip to content

Instantly share code, notes, and snippets.

@ConradIrwin
Created November 17, 2012 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ConradIrwin/2f19a3cffb1a7bdfaf22 to your computer and use it in GitHub Desktop.
Save ConradIrwin/2f19a3cffb1a7bdfaf22 to your computer and use it in GitHub Desktop.
diff --git a/vm.c b/vm.c
index f961196..0982909 100644
--- a/vm.c
+++ b/vm.c
@@ -481,6 +481,7 @@ vm_collect_local_variables_in_heap(rb_thread_t *th, VALUE *ep, VALUE ary)
static void vm_rewrite_ep_in_errinfo(rb_thread_t *th);
+__attribute__ ((visibility ("default")))
VALUE
rb_vm_make_env_object(rb_thread_t * th, rb_control_frame_t *cfp)
{
diff --git a/vm_backtrace.c b/vm_backtrace.c
index bfd3adf..203dfff 100644
--- a/vm_backtrace.c
+++ b/vm_backtrace.c
@@ -28,6 +28,7 @@ calc_lineno(const rb_iseq_t *iseq, const VALUE *pc)
return rb_iseq_line_no(iseq, pc - iseq->iseq_encoded);
}
+__attribute__ ((visibility ("default")))
int
rb_vm_get_sourceline(const rb_control_frame_t *cfp)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment