Project

General

Profile

Actions

Bug #7976

closed

TracePoint call is at call point, not call site

Added by zenspider (Ryan Davis) over 11 years ago. Updated over 1 year ago.

Status:
Closed
Target version:
-
ruby -v:
2.0
Backport:
[ruby-core:52971]

Description

Using TracePoint to make a new tracer utility I'm finding it very difficult to actually trace where the origin is for type :call. Instead, I get the destination. This is not the case for :c_call or :b_call as they trace at the origin, not destination.

Reproduction attached. Notice how it outputs ":call wtf.rb:08 :x" where line 8 is the definition of x, not the call of x, yet the subsequent backtrace lists line 21 which is the original origin for the call to x.


Files

tp_test.rb (1.21 KB) tp_test.rb zenspider (Ryan Davis), 02/27/2013 10:25 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0