Project

General

Profile

« Previous | Next » 

Revision 37716

  • thread.c: add Thread#backtrace_locations' method. This method is similart tocaller_locations' method for specific method. And fix to accept level' andn' parameters for Thread#backtrace' andThread#backtrace_locations'. caller' (andcaller_locations') do not return caller' method frame. However,Thread#backtrace' (and Thread#backtrace_locations') returnThread#backtrace' method frame itself if `Thread.current.backtrace' was called.
  • vm_backtrace.c: ditto.
  • internal.h: ditto.
  • test/ruby/test_backtrace.rb: add tests.