Skip to content
Snippets Groups Projects
Unverified Commit a9268286 authored by bunnei's avatar bunnei Committed by GitHub
Browse files

Merge pull request #2060 from lioncash/exception

kernel/svc: Log out uncaught C++ exceptions from svcBreak
parents 65f39080 7842536d
No related branches found
No related tags found
No related merge requests found
...@@ -597,6 +597,7 @@ enum class BreakType : u32 { ...@@ -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) { ...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment