summaryrefslogtreecommitdiff
path: root/vm_opts.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-19 10:37:08 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-19 10:37:08 +0000
commita73894337a830cdd32a913964f3150bc35269975 (patch)
tree9867f12c88a52c9c4d7ca5fe30c9b57e5a9e411f /vm_opts.h
parent2dd91facca2337ff611489f1ccd84441d8fc9bf2 (diff)
downloadruby-a73894337a830cdd32a913964f3150bc35269975.tar.gz
* eval.c, node.h, thread.c, yarvcore.[ch], eval_intern.h:
support set_trace_func (incomplete. id and klass don't be passed). And support Thread#set_trace_func which hook only specified thread and Thread#add_trace_func which add new trace func instead of replace old one. C level API was modified. See thread.c (logic) and yarvcore.h (data structures). * vm.c, vm_macro.def: add hook points. * compile.c, insns.def: fix "trace" instruction. * iseq.c, vm_macro.h: add compile option "trace_instruction". * test/ruby/test_settracefunc.rb: hook "c-return" of set_trace_func. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_opts.h')
-rw-r--r--vm_opts.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vm_opts.h b/vm_opts.h
index a34ee264b4..041cef7faa 100644
--- a/vm_opts.h
+++ b/vm_opts.h
@@ -22,6 +22,7 @@
/* VM running option */
#define OPT_CHECKED_RUN 1
+#define OPT_TRACE_INSTRUCTION 1
/* at compile */
#define OPT_INLINE_CONST_CACHE 1