yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #2060 from lioncash/exception

kernel/svc: Log out uncaught C++ exceptions from svcBreak
This commit is contained in:
bunnei 2019-01-27 12:55:07 -05:00 committed by GitHub
commit a9268286a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -597,6 +597,7 @@ enum class BreakType : u32 {
PostNROLoad = 4, PostNROLoad = 4,
PreNROUnload = 5, PreNROUnload = 5,
PostNROUnload = 6, PostNROUnload = 6,
CppException = 7,
}; };
struct BreakReason { struct BreakReason {
@ -669,6 +670,9 @@ static void Break(u32 reason, u64 info1, u64 info2) {
"Signalling debugger, Unloaded an NRO at 0x{:016X} with size 0x{:016X}", info1, "Signalling debugger, Unloaded an NRO at 0x{:016X} with size 0x{:016X}", info1,
info2); info2);
break; break;
case BreakType::CppException:
LOG_CRITICAL(Debug_Emulated, "Signalling debugger. Uncaught C++ exception encountered.");
break;
default: default:
LOG_WARNING( LOG_WARNING(
Debug_Emulated, Debug_Emulated,