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

merges r20742 from trunk into ruby_1_9_1.

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2008-12-17 06:14:59 +00:00
parent 0949c4c659
commit f29b34f482
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;
}