diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 00:47:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 00:47:40 +0000 |
commit | 657b7495b940abda426015a37aa6bf028b404991 (patch) | |
tree | 219a7689832e4cc1b00d9ab7ec63ce9fb42e66e1 /vm_dump.c | |
parent | 77d09c15e6e494974e799b7a3acb97ca9a90f1db (diff) | |
download | ruby-657b7495b940abda426015a37aa6bf028b404991.tar.gz ruby-657b7495b940abda426015a37aa6bf028b404991.tar.xz ruby-657b7495b940abda426015a37aa6bf028b404991.zip |
* vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now
takes VALUE as file and method names.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |