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 | 6a2a22c86bf9a4e0708206bb6d241cbc00fd3d3e (patch) | |
| tree | 2a4be7c58259a21f0a3f04ca76ea2ee1774d00f5 /lib/tracer.rb | |
| parent | e7cebbd83b164337399f6d6664b549f3b9660d5d (diff) | |
| download | ruby-6a2a22c86bf9a4e0708206bb6d241cbc00fd3d3e.tar.gz ruby-6a2a22c86bf9a4e0708206bb6d241cbc00fd3d3e.tar.xz ruby-6a2a22c86bf9a4e0708206bb6d241cbc00fd3d3e.zip | |
* 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: http://svn.ruby-lang.org/repos/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 22f32bf22..5b3983bb9 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 |
