Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13)

Unified Diff: src/processor/minidump_stackwalk.cc

Issue 32003: Let x86 stackwalker scan stack in cases where program evaluation fails (Closed) Base URL: http://google-breakpad.googlecode.com/svn/trunk/
Patch Set: Created 15 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/processor/minidump_stackwalk.cc
===================================================================
--- src/processor/minidump_stackwalk.cc (revision 408)
+++ src/processor/minidump_stackwalk.cc (working copy)
@@ -160,6 +160,28 @@
sequence = PrintRegister("edx", frame_x86->context.edx, sequence);
sequence = PrintRegister("efl", frame_x86->context.eflags, sequence);
}
+ const char *trust_name;
+ switch (frame_x86->trust) {
+ case StackFrameX86::FRAME_TRUST_NONE:
+ trust_name = "unknown";
+ break;
+ case StackFrameX86::FRAME_TRUST_CONTEXT:
+ trust_name = "given as instruction pointer in context";
+ break;
+ case StackFrameX86::FRAME_TRUST_CFI:
+ trust_name = "call frame info";
+ break;
+ case StackFrameX86::FRAME_TRUST_CFI_SCAN:
+ trust_name = "call frame info with scanning";
+ break;
+ case StackFrameX86::FRAME_TRUST_FP:
+ trust_name = "previous frame's frame pointer";
+ break;
+ case StackFrameX86::FRAME_TRUST_SCAN:
+ trust_name = "stack scanning";
+ break;
+ }
+ printf("\n Found by: %s", trust_name);
} else if (cpu == "ppc") {
const StackFramePPC *frame_ppc =
reinterpret_cast<const StackFramePPC*>(frame);

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted