Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(850)

Unified Diff: runtime/vm/debugger.cc

Issue 254683003: Fix stacktrace crasher bug in the VM and duplicate breakpoint crasher bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« runtime/lib/stacktrace.cc ('K') | « runtime/lib/stacktrace.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/debugger.cc
diff --git a/runtime/vm/debugger.cc b/runtime/vm/debugger.cc
index d87143b49bf099e34d67e4f4bf9226b66393e8d6..8f639f2bc31abe3d6292973209539ff57091da88 100644
--- a/runtime/vm/debugger.cc
+++ b/runtime/vm/debugger.cc
@@ -1732,8 +1732,8 @@ SourceBreakpoint* Debugger::SetBreakpoint(const Script& script,
SourceBreakpoint* bpt = GetSourceBreakpoint(script, token_pos);
if (bpt == NULL) {
bpt = new SourceBreakpoint(nextId(), script, token_pos, last_token_pos);
+ RegisterSourceBreakpoint(bpt);
}
- RegisterSourceBreakpoint(bpt);
bpt->Enable();
return bpt;
}
« runtime/lib/stacktrace.cc ('K') | « runtime/lib/stacktrace.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698