mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() for
int variable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
585ac7f1a2
commit
e8af0046b7
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Thu Nov 29 16:14:41 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* vm_backtrace.c (rb_debug_inspector_open): use RARRAY_LENINT() for
|
||||||
|
int variable.
|
||||||
|
|
||||||
Thu Nov 29 15:59:55 2012 Koichi Sasada <ko1@atdot.net>
|
Thu Nov 29 15:59:55 2012 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* include/ruby/debug.h: add rb_debug_inspector_* APIs.
|
* include/ruby/debug.h: add rb_debug_inspector_* APIs.
|
||||||
|
|
|
@ -931,7 +931,7 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data)
|
||||||
dbg_context.th = th;
|
dbg_context.th = th;
|
||||||
dbg_context.cfp = dbg_context.th->cfp;
|
dbg_context.cfp = dbg_context.th->cfp;
|
||||||
dbg_context.backtrace = vm_backtrace_location_ary(th, 0, 0);
|
dbg_context.backtrace = vm_backtrace_location_ary(th, 0, 0);
|
||||||
dbg_context.backtrace_size = RARRAY_LEN(dbg_context.backtrace);
|
dbg_context.backtrace_size = RARRAY_LENINT(dbg_context.backtrace);
|
||||||
dbg_context.contexts = collect_caller_bindings(th);
|
dbg_context.contexts = collect_caller_bindings(th);
|
||||||
|
|
||||||
TH_PUSH_TAG(th);
|
TH_PUSH_TAG(th);
|
||||||
|
|
Loading…
Reference in a new issue