forked from OSchip/llvm-project
Indent the frames in the "thread.GetStatus" frame listing. Also put the same space after each thread listing for "thread backtrace all" as "thread backtrace 1 3 5"
llvm-svn: 136052
This commit is contained in:
parent
d600a0f878
commit
5c4df7a4d6
|
@ -196,6 +196,10 @@ public:
|
||||||
result.SetStatus (eReturnStatusFailed);
|
result.SetStatus (eReturnStatusFailed);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i < num_threads - 1)
|
||||||
|
result.AppendMessage("");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -1126,6 +1126,7 @@ Thread::GetStatus (Stream &strm, uint32_t start_frame, uint32_t num_frames, uint
|
||||||
const bool show_frame_info = true;
|
const bool show_frame_info = true;
|
||||||
const uint32_t source_lines_before = 3;
|
const uint32_t source_lines_before = 3;
|
||||||
const uint32_t source_lines_after = 3;
|
const uint32_t source_lines_after = 3;
|
||||||
|
strm.IndentMore ();
|
||||||
num_frames_shown = GetStackFrameList ().GetStatus (strm,
|
num_frames_shown = GetStackFrameList ().GetStatus (strm,
|
||||||
start_frame,
|
start_frame,
|
||||||
num_frames,
|
num_frames,
|
||||||
|
@ -1134,6 +1135,7 @@ Thread::GetStatus (Stream &strm, uint32_t start_frame, uint32_t num_frames, uint
|
||||||
source_lines_before,
|
source_lines_before,
|
||||||
source_lines_after);
|
source_lines_after);
|
||||||
strm.IndentLess();
|
strm.IndentLess();
|
||||||
|
strm.IndentLess();
|
||||||
}
|
}
|
||||||
return num_frames_shown;
|
return num_frames_shown;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue