Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Remove the frame limit on the crashing_thread preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Gankra authored and willkg committed Mar 24, 2021
1 parent 01a5aa3 commit 5896847
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions minidump-stackwalk/stackwalker.cc
Original file line number Diff line number Diff line change
Expand Up @@ -815,14 +815,14 @@ static void ConvertProcessStateToJSON(const ProcessState& process_state,
}
root["threads"] = threads;

// Put the first ten frames of the crashing thread in a separate field
// for ease of searching.
// Put the stack of the crashing thread in a separate field
// to make it easier to read the raw JSON.
if (process_state.crashed() && requesting_thread != -1) {
Json::Value crashing_thread;
Json::Value stack;
const CallStack *crashing_stack =
process_state.threads()->at(requesting_thread);
ConvertStackToJSON(process_state, crashing_stack, stack, 10, true);
ConvertStackToJSON(process_state, crashing_stack, stack, 0, true);

crashing_thread["threads_index"] = requesting_thread;
crashing_thread["frames"] = stack;
Expand Down

0 comments on commit 5896847

Please sign in to comment.