Skip to content

Commit 0ffb349

Browse files
nobudenofevil
authored andcommitted
check necessary struct members.
1 parent 37ff60e commit 0ffb349

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ext/ruby_debug/extconf.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
require "ruby_core_source"
33

44
hdrs = proc {
5-
have_struct_member("rb_method_entry_t", "def", "method.h")
5+
begin
6+
have_struct_member("rb_method_entry_t", "called_id", "method.h") or
7+
have_struct_member("rb_control_frame_t", "method_id", "method.h")
8+
end and
69
have_header("vm_core.h") and have_header("iseq.h") and have_header("insns.inc") and
710
have_header("insns_info.inc") and have_header("eval_intern.h")
811
}

0 commit comments

Comments
 (0)