diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-18 07:55:45 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-18 07:55:45 +0000 |
commit | 942a54302de5bfa4665960947c403e1c0b6831ad (patch) | |
tree | 2a4be7c58259a21f0a3f04ca76ea2ee1774d00f5 /lib/tracer.rb | |
parent | 31345380ac41f8b830104ea41b4b52e1e2b094a8 (diff) |
* parse.y (yycompile): disable trace while creating ruby_debug_lines.
[ruby-talk:253586]
* thread.c (ruby_suppress_tracing): new function to call a function
with suppressing trace.
* lib/debug.rb, lib/tracer.rb: for YARV.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/tracer.rb')
-rw-r--r-- | lib/tracer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tracer.rb b/lib/tracer.rb index 22f32bf222..5b3983bb9f 100644 --- a/lib/tracer.rb +++ b/lib/tracer.rb @@ -118,8 +118,8 @@ class Tracer return unless p.call event, file, line, id, binding, klass end - saved_crit = Thread.critical - Thread.critical = true + # saved_crit = Thread.critical + # Thread.critical = true stdout.printf("#%d:%s:%d:%s:%s: %s", get_thread_no, file, @@ -127,7 +127,7 @@ class Tracer klass || '', EVENT_SYMBOL[event], get_line(file, line)) - Thread.critical = saved_crit + # Thread.critical = saved_crit end Single = new |