mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* vm_trace.c (rb_tracepoint_attr_defined_class):
rename TracePoint#klass to TracePoint#defined_class. [ruby-core:50187] Re: [ruby-trunk - Feature #6895] * include/ruby/debug.h: ditto. * test/ruby/test_settracefunc.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
502ab126ac
commit
89c889d4e7
4 changed files with 15 additions and 5 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Thu Nov 29 14:49:10 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* vm_trace.c (rb_tracepoint_attr_defined_class):
|
||||
rename TracePoint#klass to TracePoint#defined_class.
|
||||
[ruby-core:50187] Re: [ruby-trunk - Feature #6895]
|
||||
|
||||
* include/ruby/debug.h: ditto.
|
||||
|
||||
* test/ruby/test_settracefunc.rb: ditto.
|
||||
|
||||
Thu Nov 29 14:27:57 2012 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* gc.c (gc_stat): prepre Symbol objects at first time
|
||||
|
|
|
@ -55,7 +55,7 @@ VALUE rb_tracepoint_attr_event(VALUE tpval);
|
|||
VALUE rb_tracepoint_attr_lineno(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_path(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_id(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_klass(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_defined_class(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_binding(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_self(VALUE tpval);
|
||||
VALUE rb_tracepoint_attr_return_value(VALUE tpval);
|
||||
|
|
|
@ -418,7 +418,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
|
||||
eval <<-EOF.gsub(/^.*?: /, ""), nil, 'xyzzy'
|
||||
1: trace = TracePoint.trace(*trace_events){|tp|
|
||||
2: events << [tp.event, tp.lineno, tp.path, tp.klass, tp.id, tp.self, tp.binding.eval("local_var"), get_data.(tp)]
|
||||
2: events << [tp.event, tp.lineno, tp.path, tp.defined_class, tp.id, tp.self, tp.binding.eval("local_var"), get_data.(tp)]
|
||||
3: }
|
||||
4: 1.times{|;local_var| local_var = :inner
|
||||
5: tap{}
|
||||
|
@ -588,7 +588,7 @@ class TestSetTraceFunc < Test::Unit::TestCase
|
|||
assert_raise(RuntimeError){tp_store.event}
|
||||
assert_raise(RuntimeError){tp_store.path}
|
||||
assert_raise(RuntimeError){tp_store.id}
|
||||
assert_raise(RuntimeError){tp_store.klass}
|
||||
assert_raise(RuntimeError){tp_store.defined_class}
|
||||
assert_raise(RuntimeError){tp_store.binding}
|
||||
assert_raise(RuntimeError){tp_store.self}
|
||||
assert_raise(RuntimeError){tp_store.return_value}
|
||||
|
|
|
@ -711,7 +711,7 @@ rb_tracepoint_attr_id(VALUE tpval)
|
|||
}
|
||||
|
||||
VALUE
|
||||
rb_tracepoint_attr_klass(VALUE tpval)
|
||||
rb_tracepoint_attr_defined_class(VALUE tpval)
|
||||
{
|
||||
rb_tp_t *tp = tpptr(tpval);
|
||||
tp_attr_check_active(tp);
|
||||
|
@ -960,7 +960,7 @@ Init_vm_trace(void)
|
|||
rb_define_method(rb_cTracePoint, "lineno", rb_tracepoint_attr_lineno, 0);
|
||||
rb_define_method(rb_cTracePoint, "path", rb_tracepoint_attr_path, 0);
|
||||
rb_define_method(rb_cTracePoint, "id", rb_tracepoint_attr_id, 0);
|
||||
rb_define_method(rb_cTracePoint, "klass", rb_tracepoint_attr_klass, 0);
|
||||
rb_define_method(rb_cTracePoint, "defined_class", rb_tracepoint_attr_defined_class, 0);
|
||||
rb_define_method(rb_cTracePoint, "binding", rb_tracepoint_attr_binding, 0);
|
||||
rb_define_method(rb_cTracePoint, "self", rb_tracepoint_attr_self, 0);
|
||||
rb_define_method(rb_cTracePoint, "return_value", rb_tracepoint_attr_return_value, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue