aboutsummaryrefslogtreecommitdiff
path: root/src/processor
diff options
context:
space:
mode:
authorted.mielczarek@gmail.com <ted.mielczarek@gmail.com>2015-02-27 13:40:41 +0000
committerted.mielczarek@gmail.com <ted.mielczarek@gmail.com>2015-02-27 13:40:41 +0000
commiteb08c16300b5758e9248f95811366368a6f41387 (patch)
tree484129a725ecdbb2f886b43e60f2dacfed3466d9 /src/processor
parentAdd stack contents output functionality to minidump_stackwalk (diff)
downloadbreakpad-eb08c16300b5758e9248f95811366368a6f41387.tar.xz
Formatting tweak for https://breakpad.appspot.com/9774002, add more newlines
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1430 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor')
-rw-r--r--src/processor/stackwalk_common.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/processor/stackwalk_common.cc b/src/processor/stackwalk_common.cc
index 5c66ea3d..3a6e17fe 100644
--- a/src/processor/stackwalk_common.cc
+++ b/src/processor/stackwalk_common.cc
@@ -198,7 +198,7 @@ static void PrintStackContents(const std::string &indent,
}
// Try to find instruction pointers from stack.
- printf("\n%sPossible instruction pointers:", indent.c_str());
+ printf("\n%sPossible instruction pointers:\n", indent.c_str());
for (uint64_t address = stack_begin; address < stack_end;
address += word_length) {
StackFrame pointee_frame;
@@ -223,20 +223,21 @@ static void PrintStackContents(const std::string &indent,
// Print function name.
if (!pointee_frame.function_name.empty()) {
if (word_length == 4) {
- printf("\n%s *(0x%08x) = 0x%08x", indent.c_str(),
+ printf("%s *(0x%08x) = 0x%08x", indent.c_str(),
static_cast<uint32_t>(address),
static_cast<uint32_t>(pointee_frame.instruction));
} else {
- printf("\n%s *(0x%016" PRIx64 ") = 0x%016" PRIx64,
+ printf("%s *(0x%016" PRIx64 ") = 0x%016" PRIx64,
indent.c_str(), address, pointee_frame.instruction);
}
- printf(" <%s> [%s : %d + 0x%" PRIx64 "]",
+ printf(" <%s> [%s : %d + 0x%" PRIx64 "]\n",
pointee_frame.function_name.c_str(),
PathnameStripper::File(pointee_frame.source_file_name).c_str(),
pointee_frame.source_line,
pointee_frame.instruction - pointee_frame.source_line_base);
}
}
+ printf("\n");
}
// PrintStack prints the call stack in |stack| to stdout, in a reasonably