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>
This commit is contained in:
Ziad Youssef 2023-04-21 12:47:56 +00:00 committed by Joshua Peraza
parent bd9d94c708
commit 16cee17997

View File

@ -301,7 +301,6 @@ static void PrintFrameHeader(const StackFrame* frame, int frame_index) {
} else { } else {
printf("0x%" PRIx64, instruction_address); printf("0x%" PRIx64, instruction_address);
} }
printf("\n ");
} }
// PrintStack prints the call stack in |stack| to stdout, in a reasonably // 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) { for (int frame_index = 0; frame_index < frame_count; ++frame_index) {
const StackFrame* frame = stack->frames()->at(frame_index); const StackFrame* frame = stack->frames()->at(frame_index);
PrintFrameHeader(frame, frame_index); PrintFrameHeader(frame, frame_index);
printf("\n ");
// Inlined frames don't have registers info. // Inlined frames don't have registers info.
if (frame->trust != StackFrameAMD64::FRAME_TRUST_INLINE) { if (frame->trust != StackFrameAMD64::FRAME_TRUST_INLINE) {
@ -1297,6 +1297,7 @@ void PrintRequestingThreadBrief(const ProcessState& process_state) {
int frame_count = stack->frames()->size(); int frame_count = stack->frames()->size();
for (int frame_index = 0; frame_index < frame_count; ++frame_index) { for (int frame_index = 0; frame_index < frame_count; ++frame_index) {
PrintFrameHeader(stack->frames()->at(frame_index), frame_index); PrintFrameHeader(stack->frames()->at(frame_index), frame_index);
printf("\n");
} }
} }