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

Unified Diff: runtime/lib/stacktrace.cc

Issue 2957843002: Add gdb helper functions for creating a handle and using ToCString with RawObjects. (Closed)
Patch Set: Created 3 years, 6 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
Index: runtime/lib/stacktrace.cc
diff --git a/runtime/lib/stacktrace.cc b/runtime/lib/stacktrace.cc
index bdd4ddde6f88d62607fbc7af341e697414cd554b..8be29793cf12356c4665042dbdccf305afa43314 100644
--- a/runtime/lib/stacktrace.cc
+++ b/runtime/lib/stacktrace.cc
@@ -181,28 +181,4 @@ const StackTrace& GetCurrentStackTrace(int skip_frames) {
return stacktrace;
}
-
-// An utility method for convenient printing of dart stack traces when
-// inside 'gdb'. Note: This function will only work when there is a
-// valid exit frame information. It will not work when a breakpoint is
-// set in dart code and control is got inside 'gdb' without going through
-// the runtime or native transition stub.
-void _printCurrentStackTrace() {
- const StackTrace& stacktrace = GetCurrentStackTrace(0);
- OS::PrintErr("=== Current Trace:\n%s===\n", stacktrace.ToCString());
-}
-
-
-// Like _printCurrentStackTrace, but works in a NoSafepointScope.
-void _printCurrentStackTraceNoSafepoint() {
- StackFrameIterator frames(StackFrameIterator::kDontValidateFrames,
- Thread::Current(),
- StackFrameIterator::kNoCrossThreadIteration);
- StackFrame* frame = frames.NextFrame();
- while (frame != NULL) {
- OS::PrintErr("%s\n", frame->ToCString());
- frame = frames.NextFrame();
- }
-}
-
} // namespace dart
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/gdb_helpers.cc » ('j') | runtime/vm/gdb_helpers.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698