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

* vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now

takes VALUE as file and method names.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2009-08-16 00:47:40 +00:00
parent a174dbcd4f
commit 232836ea5a
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Sun Aug 16 09:47:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now
takes VALUE as file and method names.
Sun Aug 16 03:06:59 2009 Koichi Sasada <ko1@atdot.net>
* vm_insnhelper.c (opt_eq_func): fix optimization bug. This issue

View file

@ -565,14 +565,14 @@ rb_vmdebug_thread_dump_state(VALUE self)
}
static int
bugreport_backtrace(void *arg, const char *file, int line, const char *method)
bugreport_backtrace(void *arg, VALUE file, int line, VALUE method)
{
if (!*(int *)arg) {
fprintf(stderr, "-- Ruby level backtrace information"
"-----------------------------------------\n");
*(int *)arg = 1;
}
fprintf(stderr, "%s:%d:in `%s'\n", file, line, method);
fprintf(stderr, "%s:%d:in `%s'\n", RSTRING_PTR(file), line, RSTRING_PTR(method));
return 0;
}