summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-12 19:09:15 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-08-12 19:09:15 +0000
commitb1c5d848f89dc4bc7a25909fed26b4d8dcebb074 (patch)
tree460007b317e17a251d60aacdf6b69a24d9b607cc /iseq.c
parent99b51f6020e847826d60a5bae0fca451cf2e7994 (diff)
* vm_dump.c (debug_print_pre): fix to show control frame count.
* insns.def (opt_call_c_function): fix operand type. * lib/vm/instruction.rb: ditto. * insnhelper.ci (vm_push_frame, vm_pop_frame): fix to show control stack status on if VMDEBUG == 2. * vm.h: add a comment about VMDEBUG. * iseq.c (find_prev_line_no): fix to skip bug report if line is not found. * lib/vm/instruction.rb: fix to use build_string() on source code generators. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 94e8eeff22..091faef58f 100644
--- a/iseq.c
+++ b/iseq.c
@@ -568,7 +568,9 @@ find_prev_line_no(rb_iseq_t *iseqdat, unsigned long pos)
}
}
}
- rb_bug("find_prev_line_no: can't find - %lu", pos);
+
+ /* rb_bug("find_prev_line_no: can't find - %lu", pos); */
+
return 0;
}
@@ -665,6 +667,10 @@ insn_operand_intern(rb_iseq_t *iseq,
ret = rb_str_new2("<cdhash>");
break;
+ case TS_FUNCPTR:
+ ret = rb_str_new2("<funcptr>");
+ break;
+
default:
rb_bug("ruby_iseq_disasm: unknown operand type: %c", type);
}