From 6fd82b79479076d85401c0a8a2fda2e9613e7e0a Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 26 Jun 2018 00:51:53 -0600 Subject: [PATCH] creport: Add dying message to output report, if relevant. --- stratosphere/creport/source/creport_crash_report.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stratosphere/creport/source/creport_crash_report.cpp b/stratosphere/creport/source/creport_crash_report.cpp index 7924fea86..34873bc48 100644 --- a/stratosphere/creport/source/creport_crash_report.cpp +++ b/stratosphere/creport/source/creport_crash_report.cpp @@ -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");