From de49cfefac15fb83d9f30e1bcdfef9685cb95425 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sat, 11 Aug 2018 19:16:29 -0700 Subject: [PATCH] creport: Print Break information on UserBreak --- stratosphere/creport/source/creport_crash_report.cpp | 5 +++++ stratosphere/creport/source/creport_debug_types.hpp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/stratosphere/creport/source/creport_crash_report.cpp b/stratosphere/creport/source/creport_crash_report.cpp index 01994e1e6..30059d1de 100644 --- a/stratosphere/creport/source/creport_crash_report.cpp +++ b/stratosphere/creport/source/creport_crash_report.cpp @@ -272,6 +272,11 @@ void CrashReport::SaveToFile(FILE *f_report) { case DebugExceptionType::BadSvc: fprintf(f_report, " Svc Id: 0x%02x\n", this->exception_info.specific.bad_svc.id); break; + case DebugExceptionType::UserBreak: + fprintf(f_report, " Break Reason: 0x%lx\n", this->exception_info.specific.user_break.break_reason); + fprintf(f_report, " Break Address: %s\n", this->code_list.GetFormattedAddressString(this->exception_info.specific.user_break.address)); + fprintf(f_report, " Break Size: 0x%lx\n", this->exception_info.specific.user_break.size); + break; default: break; } diff --git a/stratosphere/creport/source/creport_debug_types.hpp b/stratosphere/creport/source/creport_debug_types.hpp index 22421dbba..44daa7f67 100644 --- a/stratosphere/creport/source/creport_debug_types.hpp +++ b/stratosphere/creport/source/creport_debug_types.hpp @@ -76,7 +76,7 @@ struct AlignmentFaultInfo { }; struct UserBreakInfo { - u64 info_0; + u64 break_reason; u64 address; u64 size; };