Chromium Code Reviews| Index: runtime/vm/exceptions.cc |
| =================================================================== |
| --- runtime/vm/exceptions.cc (revision 8413) |
| +++ runtime/vm/exceptions.cc (working copy) |
| @@ -6,6 +6,7 @@ |
| #include "vm/cpu.h" |
| #include "vm/dart_entry.h" |
| +#include "vm/debugger.h" |
| #include "vm/flags.h" |
| #include "vm/object.h" |
| #include "vm/stack_frame.h" |
| @@ -244,6 +245,9 @@ |
| void Exceptions::Throw(const Instance& exception) { |
|
siva
2012/06/08 17:17:27
Isolate* isolate = Isolate::Current();
if (isolate
hausner
2012/06/08 17:42:35
Done.
|
| + if (Isolate::Current()->debugger()->IsActive()) { |
| + Isolate::Current()->debugger()->SignalExceptionThrown(exception); |
| + } |
| // Null object is a valid exception object. |
| ThrowExceptionHelper(exception, Instance::Handle()); |
|
siva
2012/06/08 17:17:27
Instance::Handle(isolate);
hausner
2012/06/08 17:42:35
Done.
|
| } |