[#7102] Ruby 1.3.4-990611 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.4-990611 is out, check out:

20 messages 1999/06/11

[#7223] Ruby 1.3.4-990625 — Yukihiro Matsumoto <matz@...>

Ruby 1.3.4-990625 is out, check out:

14 messages 1999/06/25
[#7224] -Wl,-rpath on Linux (Re: Ruby 1.3.4-990625) — Ryo HAYASAKA <hayasaka@...21.u-aizu.ac.jp> 1999/06/25

早坂@会津大学です。

[ruby-dev:7128] tracer

From: Masaki Fukushima <fukusima@...>
Date: 1999-06-17 08:19:14 UTC
List: ruby-dev #7128
福嶋です。

ruby -r tracer hoge.rb 等がうまく動きません。

Index: tracer.rb
===================================================================
RCS file: /home/cvs/ruby/lib/tracer.rb,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 tracer.rb
--- tracer.rb	1999/01/20 04:59:36	1.1.1.2
+++ tracer.rb	1999/06/17 08:13:13
@@ -54,7 +54,7 @@
 	off
       end
     else
-      set_trace_func proc{|event, file, line, id, binding|
+      set_trace_func proc{|event, file, line, id, binding, klass|
 	trace_func event, file, line, id, binding
       }
       print "Trace on\n" if Tracer.verbose?
@@ -148,7 +148,7 @@
   
 end
 
-if caller(0).size == 1
+if caller(0).size == 2
   if $0 == Tracer::MY_FILE_NAME
     # direct call
     

ただし、後の方はcallerのバグ(というか、-rを使った時のスタックトレー
スがおかしい)が原因だと思うので、それが直るまでの応急措置です。

---
福嶋正機

In This Thread

Prev Next