creport: Add dying message to output report, if relevant.

This commit is contained in:
Michael Scire 2018-06-26 00:51:53 -06:00
parent 4eadeb021b
commit 6fd82b7947

View file

@ -280,6 +280,12 @@ void CrashReport::SaveToFile(FILE *f_report) {
this->crashed_thread_info.SaveToFile(f_report); this->crashed_thread_info.SaveToFile(f_report);
if (kernelAbove500()) { 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"); fprintf(f_report, "Code Region Info:\n");
this->code_list.SaveToFile(f_report); this->code_list.SaveToFile(f_report);
fprintf(f_report, "\nThread Report:\n"); fprintf(f_report, "\nThread Report:\n");