From: "nobu (Nobuyoshi Nakada)" <nobu@...>
Date: 2012-12-19T16:54:06+09:00
Subject: [ruby-core:50975] [ruby-trunk - Bug #7586][Closed] Useless sourceline in DTrace parse__begin and parse__end probes


Issue #7586 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Open to Closed

It can be other than 1 if the line number is given to eval.
----------------------------------------
Bug #7586: Useless sourceline in DTrace parse__begin and parse__end probes
https://bugs.ruby-lang.org/issues/7586#change-34842

Author: vo.x (Vit Ondruch)
Status: Closed
Priority: Normal
Assignee: tenderlovemaking (Aaron Patterson)
Category: 
Target version: 
ruby -v: ruby 2.0.0dev (2012-12-17 trunk 38422) [x86_64-linux]


I am not 100% sure, but isn't the 'parser->parser_ruby_sourceline' at https://github.com/ruby/ruby/blob/trunk/parse.y#L5322 always '1'? Does it make sense to pass this information to DTrace  parse__begin(const char *, int) and parse__end(const char *, int) probes?


-- 
http://bugs.ruby-lang.org/