thread.c: add Thread#backtrace_locations' method. This method is similart to caller_locations' method for
specific method.
And fix to accept level' and n' parameters for Thread#backtrace' and Thread#backtrace_locations'. caller' (and caller_locations') do not return caller' method frame. However, Thread#backtrace' (and Thread#backtrace_locations') return Thread#backtrace' method frame itself
if `Thread.current.backtrace' was called.
Thread#backtrace_locations' method. This method is similart tocaller_locations' method forspecific method.
And fix to accept
level' andn' parameters forThread#backtrace' andThread#backtrace_locations'.caller' (andcaller_locations') do not returncaller' method frame. However,Thread#backtrace' (andThread#backtrace_locations') returnThread#backtrace' method frame itselfif `Thread.current.backtrace' was called.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e