Project

General

Profile

Actions

Bug #15471

closed

-e and specified file does not kick script_compiled TracePoint event

Added by ko1 (Koichi Sasada) about 5 years ago. Updated about 5 years ago.

Status:
Closed
Target version:
[ruby-core:90746]

Description

Of course, ruby -e ... or ruby script.rb compile given ruby script. But script_compiled event is not kicked.

$ ruby -r sample x.rb

We can put TracePoint in sample library but we can't get script_compiled event on -e or given x.rb file. It should be a bug.

Actions #1

Updated by ko1 (Koichi Sasada) about 5 years ago

  • Status changed from Open to Closed

Applied in changeset trunk|r66595.


fix missed script_compiled events. [Bug #15471]

  • ruby.c (process_options): script_compiled events are missed on
    command line -e or specified file. this commit fix it.
    [Bug #15471]

    This patch should be backport to Ruby 2.6 branch.

  • vm_core.h (rb_exec_event_hook_script_compiled): introduce utility
    function to invoke a script_compiled event.

Actions #2

Updated by nagachika (Tomoyuki Chikanaga) about 5 years ago

  • Backport changed from 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED

Updated by naruse (Yui NARUSE) about 5 years ago

  • Backport changed from 2.4: DONTNEED, 2.5: DONTNEED, 2.6: REQUIRED to 2.4: DONTNEED, 2.5: DONTNEED, 2.6: DONE

ruby_2_6 r66815 merged revision(s) 66595.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0