summaryrefslogtreecommitdiffstats
path: root/vm_dump.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 08:22:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 08:22:58 +0000
commitf8e3cd1230b1e03b3271072a8d5263f6097d6bbc (patch)
tree9bbd396a1a0c018ad6bd9097d5119ada2c950c2a /vm_dump.c
parent52e2b77b2a19b500d8032f1625a4721621d6ae41 (diff)
downloadruby-f8e3cd1230b1e03b3271072a8d5263f6097d6bbc.tar.gz
ruby-f8e3cd1230b1e03b3271072a8d5263f6097d6bbc.tar.xz
ruby-f8e3cd1230b1e03b3271072a8d5263f6097d6bbc.zip
* vm_dump.c (vm_stack_dump_each): used only if debug mode.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index a2fc37823..5bfd38284 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -236,6 +236,7 @@ rb_vmdebug_stack_dump_th(VALUE thval)
rb_vmdebug_stack_dump_raw(th, th->cfp);
}
+#if VMDEBUG > 2
static void
vm_stack_dump_each(rb_thread_t *th, rb_control_frame_t *cfp)
{
@@ -322,7 +323,7 @@ vm_stack_dump_each(rb_thread_t *th, rb_control_frame_t *cfp)
rb_bug("unsupport frame type: %08lx", VM_FRAME_TYPE(cfp));
}
}
-
+#endif
void
rb_vmdebug_debug_print_register(rb_thread_t *th)