[#83773] [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769 — usa@...
Issue #14108 has been updated by usa (Usaku NAKAMURA).
9 messages
2017/11/15
[#83774] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
usa@garbagecollect.jp wrote:
[#83775] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric
[#83779] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
"U.NAKAMURA" <usa@garbagecollect.jp> wrote:
[#83781] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— "U.NAKAMURA" <usa@...>
2017/11/15
Hi, Eric,
[#83782] Re: [Ruby trunk Bug#14108] Seg Fault with MinGW on svn 60769
— Eric Wong <normalperson@...>
2017/11/15
IlUuTkFLQU1VUkEiIDx1c2FAZ2FyYmFnZWNvbGxlY3QuanA+IHdyb3RlOgo+IEhpLCBFcmljLAo+
[ruby-core:83950] [Ruby trunk Feature#3809] allow multiple set_trace_func() calls
From:
ko1@...
Date:
2017-11-29 07:33:10 UTC
List:
ruby-core #83950
Issue #3809 has been updated by ko1 (Koichi Sasada).
Please use TracePoint API.
----------------------------------------
Feature #3809: allow multiple set_trace_func() calls
https://bugs.ruby-lang.org/issues/3809#change-68013
* Author: sunaku (Suraj Kurapati)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version: next minor
----------------------------------------
=begin
Hello,
The current set_trace_func() method in Ruby 1.8 and 1.9 cannot be safely
called multiple times because each call overwrites the current trace_func.
Please consider adding a mechanism, such as the multitrace library[1], to
allow users to attach multiple tracing functions simultaneously to Ruby.
An alternative to the multitrace library[1] is to add some new methods:
* attach_trace_func(proc) #=> proc
* detach_trace_func(proc) #=> proc
When you call attach_trace_func(), it will register your tracing
function and return it. You can pass the same tracing function
later to detach_trace_func() to unregister it.
Here is a convoluted example:
detach_trace_func(attach_trace_func(proc {}))
Here is a more realistic example:
foo = proc {}
bar = proc {}
attach_trace_func foo
# ...
attach_trace_func bar
# ...
detach_trace_func foo
detach_trace_func bar
Thanks for your consideration.
[1]: http://codeidol.com/other/rubyckbk/Testing,-Debugging,-Optimizing,-and-Documenting/Running-Multiple-Analysis-Tools-at-Once/
=end
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>