1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* vm.c (vm_backtrace): defaults to script name for C functions.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-12-15 02:35:29 +00:00
parent f403298449
commit 94fc275e16
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Mon Dec 15 11:35:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm.c (vm_backtrace): defaults to script name for C functions.
Mon Dec 15 11:32:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): cannot use

2
vm.c
View file

@ -704,7 +704,7 @@ vm_backtrace(rb_thread_t *th, int lev)
}
ary = vm_backtrace_each(th, RUBY_VM_NEXT_CONTROL_FRAME(cfp),
top_of_cfp, "", 0, ary);
top_of_cfp, RSTRING_PTR(th->vm->progname), 0, ary);
return ary;
}