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

Unified Diff: runtime/lib/stacktrace.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
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/stacktrace.cc
diff --git a/runtime/lib/stacktrace.cc b/runtime/lib/stacktrace.cc
index 486d96d32c5423d25191aaecbf305ccd84528bf2..3e02ca997d1a2174fe926b782a009079d3866189 100644
--- a/runtime/lib/stacktrace.cc
+++ b/runtime/lib/stacktrace.cc
@@ -26,7 +26,8 @@ DEFINE_NATIVE_ENTRY(Stacktrace_getFullStacktrace, 1) {
DEFINE_NATIVE_ENTRY(Stacktrace_getStacktrace, 1) {
const Stacktrace& trace =
Stacktrace::CheckedHandle(arguments->NativeArgAt(0));
- return String::New(trace.ToCStringInternal(0));
+ intptr_t frame_index = 0;
+ return String::New(trace.ToCStringInternal(&frame_index));
Jacob 2014/04/24 20:28:55 needed to avoid a null ptr exception.
}
« no previous file with comments | « no previous file | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698