summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-16 00:47:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-16 00:47:40 +0000
commit232836ea5aaa0e06954b24044ace818aececbf9f (patch)
tree219a7689832e4cc1b00d9ab7ec63ce9fb42e66e1
parenta174dbcd4fc33a0355b92b646ec3a412b1ebbb14 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--vm_dump.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index a31031560f..89b3995144 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/vm_dump.c b/vm_dump.c
index d22c652cf0..0759a93fe3 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -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;
}