From fb4f7b79c0f7fca5be6e9b26bcd86a45e51b342a Mon Sep 17 00:00:00 2001 From: Stefanos Kornilios Mitsis Poiitidis Date: Sun, 15 Oct 2023 16:09:38 +0300 Subject: [PATCH] stubs: also log return address --- src/Core/PS4/Stubs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/PS4/Stubs.cpp b/src/Core/PS4/Stubs.cpp index f1e9602b..3cba831c 100644 --- a/src/Core/PS4/Stubs.cpp +++ b/src/Core/PS4/Stubs.cpp @@ -19,12 +19,12 @@ #define MAX_STUBS 128 u64 UnresolvedStub() { - LOG_ERROR("Unresolved Stub: called, returning zero\n"); + LOG_ERROR("Unresolved Stub: called, returning zero to {}\n", __builtin_return_address(0)); return 0; } static u64 UnknownStub() { - LOG_ERROR("Stub: Unknown (nid: Unknown) called, returning zero\n"); + LOG_ERROR("Stub: Unknown (nid: Unknown) called, returning zero to {}\n", __builtin_return_address(0)); return 0; } @@ -36,9 +36,9 @@ template static u64 CommonStub() { auto entry = stub_nids[stub_index]; if (entry) { - LOG_ERROR("Stub: {} (nid: {}) called, returning zero\n", entry->name, entry->nid); + LOG_ERROR("Stub: {} (nid: {}) called, returning zero to {}\n", entry->name, entry->nid, __builtin_return_address(0)); } else { - LOG_ERROR("Stub: Unknown (nid: {}) called, returning zero\n", stub_nids_unknown[stub_index]); + LOG_ERROR("Stub: Unknown (nid: {}) called, returning zero to {}\n", stub_nids_unknown[stub_index], __builtin_return_address(0)); } return 0; }