From fbdc2bf5f70aa594eac63d27079708ae739a0481 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 20 Oct 2004 06:53:42 +0000 Subject: * parse.y (lex_getline): should update ruby_debug_lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index eda872dc38..a237768145 100644 --- a/eval.c +++ b/eval.c @@ -2457,6 +2457,7 @@ call_trace_func(event, node, self, id, klass) if (!trace_func) return; if (tracing) return; if (id == ID_ALLOCATOR) return; + if (!node && ruby_sourceline == 0) return; if (!(node_save = ruby_current_node)) { node_save = NEW_BEGIN(0); @@ -2491,7 +2492,7 @@ call_trace_func(event, node, self, id, klass) INT2FIX(ruby_sourceline), id?ID2SYM(id):Qnil, self?rb_f_binding(self):Qnil, - klass), + klass?klass:Qnil), Qundef, 0); } if (raised) thread_set_raised(); -- cgit v1.2.3