c-return passes different 'file' then c-call for load and require
-----------------------------------------------------------------

                 Key: JRUBY-2753
                 URL: http://jira.codehaus.org/browse/JRUBY-2753
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.1.2, JRuby 1.1.3
         Environment: jruby 1.1.3-dev (ruby 1.8.6 patchlevel 114) (2008-07-04 
rev 7101) [i386-java]
            Reporter: Martin Krauskopf


Regression test is already available (and fails) in JRUBY-2745. For simplest 
scenario you may run:\\

{noformat}
$ touch other.rb # creates empty file
$ cat jira-tester.rb 
Kernel.set_trace_func(lambda do |event, file, line, id, binding, clazz|
  printf "%8s | %#{$0.length}s:%-4d | %12s | %8s\n", event, file, line, id, 
clazz
end)

require 'other.rb'
$ ruby jira-tester.rb 
    line | jira-tester.rb:5    |              |    false
  c-call | jira-tester.rb:5    |      require |   Kernel
c-return | jira-tester.rb:5    |      require |   Kernel
$ jruby --debug jira-tester.rb 
    line | jira-tester.rb:5    |              |    false
  c-call | jira-tester.rb:5    |      require |   Kernel
c-return | /home/emdot/ruby/tester/lib/stf/./other.rb:5    |      require |   
Kernel
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to