diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -18,6 +18,7 @@ #include "ruby/encoding.h" #include "internal.h" #include "vm_core.h" +#include "probes.h" #define numberof(array) (int)(sizeof(array) / sizeof((array)[0])) @@ -499,6 +500,11 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg) } if (tag != TAG_FATAL) { + if(RUBY_DTRACE_RAISE_ENABLED()) { + RUBY_DTRACE_RAISE(rb_obj_classname(th->errinfo), + rb_sourcefile(), + rb_sourceline()); + } EXEC_EVENT_HOOK(th, RUBY_EVENT_RAISE, th->cfp->self, 0, 0); } } |