[Ironruby-core] Code Review: Fixes for setting/getting backtraces
Shri.Borde at microsoft.com
Tue Mar 3 14:34:23 EST 2009
tfpt review "/shelveset:exc;REDMOND\sborde"
- minitest was failing while reporting a test failure because .backtrace was returning null. This was because "raise existingExceptionObject" was setting backtrace to nil. Fixed this and added tests for it.
- Overridden versions of set_trace were also not being called. Fixed this.
- The model now is that RubyExceptionData.SetBacktrace manages the case of firing (the most override version of) Exception#set_backtrace for the case of an exception being raised. ExceptionOps.SetBacktrace handles the generic case of the user calling the base implmenetation of Exception#set_backtrace (ie. it is the normal library API which does not have to worry about the complications of exception handling). RubyExceptionData.SetBacktrace now eagerly creates the Ruby backtrace in most cases, but this should not affect perf since an exception is being thrown which is much more expensive.
Added RubySpec project to Ruby.sln as a placeholder to make it easy to get to the rubyspec files. It contains a link to just a couple of files. Once these are opened, Ctrl-O will open a File Open dialog box in the same folder as that file.
Added all the supported command-line options to ir.exe help
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 53001 bytes
More information about the Ironruby-core