aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZiad Youssef <ziadyoussef@chromium.org>2023-04-21 12:47:56 +0000
committerJoshua Peraza <jperaza@chromium.org>2023-04-24 15:41:17 +0000
commit16cee17997a52e200b38fbded8545bc76127d791 (patch)
treea4e05bfd77080014ce0cdc5e6765c3d1d2997b01
parentbd9d94c70843620adeebcd73c243001237c6d426 (diff)
downloadgoogle-breakpad-16cee17997a52e200b38fbded8545bc76127d791.tar.gz
Fix alignment of the brief output of minidump_stackwalk
Bug: 1435239 Change-Id: I4ea6cbe89d5ef0907f7e07c454e4533995996521 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4459351 Reviewed-by: Joshua Peraza <jperaza@chromium.org>
-rw-r--r--src/processor/stackwalk_common.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/processor/stackwalk_common.cc b/src/processor/stackwalk_common.cc
index 889931ea..688b2782 100644
--- a/src/processor/stackwalk_common.cc
+++ b/src/processor/stackwalk_common.cc
@@ -301,7 +301,6 @@ static void PrintFrameHeader(const StackFrame* frame, int frame_index) {
} else {
printf("0x%" PRIx64, instruction_address);
}
- printf("\n ");
}
// PrintStack prints the call stack in |stack| to stdout, in a reasonably
@@ -326,6 +325,7 @@ static void PrintStack(const CallStack* stack,
for (int frame_index = 0; frame_index < frame_count; ++frame_index) {
const StackFrame* frame = stack->frames()->at(frame_index);
PrintFrameHeader(frame, frame_index);
+ printf("\n ");
// Inlined frames don't have registers info.
if (frame->trust != StackFrameAMD64::FRAME_TRUST_INLINE) {
@@ -1297,6 +1297,7 @@ void PrintRequestingThreadBrief(const ProcessState& process_state) {
int frame_count = stack->frames()->size();
for (int frame_index = 0; frame_index < frame_count; ++frame_index) {
PrintFrameHeader(stack->frames()->at(frame_index), frame_index);
+ printf("\n");
}
}