Skip to content

Commit

Permalink
creport: Add dying message to output report, if relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Jun 26, 2018
1 parent 4eadeb0 commit 6fd82b7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stratosphere/creport/source/creport_crash_report.cpp
Expand Up @@ -280,6 +280,12 @@ void CrashReport::SaveToFile(FILE *f_report) {
this->crashed_thread_info.SaveToFile(f_report);

if (kernelAbove500()) {
if (this->dying_message_size) {
fprintf(f_report, "Dying Message Info:\n");
fprintf(f_report, " Address: 0x%016lx\n", this->dying_message_address);
fprintf(f_report, " Size: 0x%016lx\n", this->dying_message_size);
CrashReport::Memdump(f_report, " Dying Message: ", this->dying_message, this->dying_message_size);
}
fprintf(f_report, "Code Region Info:\n");
this->code_list.SaveToFile(f_report);
fprintf(f_report, "\nThread Report:\n");
Expand Down

0 comments on commit 6fd82b7

Please sign in to comment.