From 71493327121038696c887158cb34f94e2f225e0f Mon Sep 17 00:00:00 2001 From: David Marcec Date: Mon, 3 Dec 2018 19:12:09 +1100 Subject: Print backtrace on svcBreak When we get an svcBreak we get a backtrace now --- src/core/hle/kernel/svc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/hle/kernel/svc.cpp') diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 3339777c1..2273f0bcf 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -625,6 +625,8 @@ static void Break(u32 reason, u64 info1, u64 info2) { "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}", reason, info1, info2); handle_debug_buffer(info1, info2); + GetCurrentThread()->LogBacktrace(); + ASSERT(false); Core::CurrentProcess()->PrepareForTermination(); -- cgit v1.2.3 From 08d5663cb8989f6e57cc28e02c572367685d69fd Mon Sep 17 00:00:00 2001 From: David Marcec Date: Wed, 19 Dec 2018 14:10:51 +1100 Subject: Moved backtrace to ArmInterface --- src/core/hle/kernel/svc.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/hle/kernel/svc.cpp') diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 2273f0bcf..290670e78 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -625,8 +625,9 @@ static void Break(u32 reason, u64 info1, u64 info2) { "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}", reason, info1, info2); handle_debug_buffer(info1, info2); - GetCurrentThread()->LogBacktrace(); - + Core::System::GetInstance() + .ArmInterface(static_cast(GetCurrentThread()->GetProcessorID())) + .LogBacktrace(); ASSERT(false); Core::CurrentProcess()->PrepareForTermination(); -- cgit v1.2.3