diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 17:00:30 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-30 17:00:30 +0000 |
commit | 12f2f7371f2dcf9c8da2a96fa251d1af2a7e977e (patch) | |
tree | 70a25ad7b5cf5a7404817c2c0d03a4d0060e8603 /vm_trace.c | |
parent | 60317fa81df069a7a2a7bdcb0aaaaebc9b77bed9 (diff) | |
download | ruby-12f2f7371f2dcf9c8da2a96fa251d1af2a7e977e.tar.gz |
[EXPERIMENTAL]
* iseq.c: add following two methods.
* ISeq#line_trace_all returns all line traces (line numbers)
* ISeq#line_trace_specify(pos, set) set `pos'th line event to
specified_line event (if set is true).
These features are introduced for debuggers (mainly to make
breakpoint).
* iseq.h: add decl. of C APIs.
* test/ruby/test_iseq.rb: add tests.
* vm_trace.c: add `specified_line' event.
* include/ruby/ruby.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_trace.c')
-rw-r--r-- | vm_trace.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_trace.c b/vm_trace.c index e70d4aad04..e2919ff79e 100644 --- a/vm_trace.c +++ b/vm_trace.c @@ -525,6 +525,7 @@ get_event_id(rb_event_flag_t event) C(b_return, B_RETURN); C(thread_begin, THREAD_BEGIN); C(thread_end, THREAD_END); + C(specified_line, SPECIFIED_LINE); #undef C default: return 0; @@ -632,6 +633,7 @@ symbol2event_flag(VALUE v) C(b_return, B_RETURN); C(thread_begin, THREAD_BEGIN); C(thread_end, THREAD_END); + C(specified_line, SPECIFIED_LINE); #undef C rb_raise(rb_eArgError, "unknown event: %s", rb_id2name(SYM2ID(sym))); } |