| Index: runtime/vm/debugger.cc
|
| ===================================================================
|
| --- runtime/vm/debugger.cc (revision 3415)
|
| +++ runtime/vm/debugger.cc (working copy)
|
| @@ -274,10 +274,14 @@
|
| }
|
|
|
|
|
| -Breakpoint* Debugger::SetBreakpointAtEntry(const Function& target_function) {
|
| +Breakpoint* Debugger::SetBreakpointAtEntry(const Function& target_function,
|
| + Error* error) {
|
| ASSERT(!target_function.IsNull());
|
| if (!target_function.HasCode()) {
|
| - Compiler::CompileFunction(target_function);
|
| + *error = Compiler::CompileFunction(target_function);
|
| + if (!error->IsNull()) {
|
| + return NULL;
|
| + }
|
| }
|
| Code& code = Code::Handle(target_function.code());
|
| ASSERT(!code.IsNull());
|
|
|