summaryrefslogtreecommitdiffstats
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-05-18 03:43:26 +0200
committerZach Hilman <zachhilman@gmail.com>2019-05-25 22:06:53 +0200
commit5574be21ccd8cf86eaba5c50d30ad898bafc8ea8 (patch)
tree08dab8c037370c284f46b56335d9b7d8e68ce839 /src/core/arm/arm_interface.h
parentcore: Track load offsets of NSO modules (diff)
downloadyuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.tar
yuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.tar.gz
yuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.tar.bz2
yuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.tar.lz
yuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.tar.xz
yuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.tar.zst
yuzu-5574be21ccd8cf86eaba5c50d30ad898bafc8ea8.zip
Diffstat (limited to '')
-rw-r--r--src/core/arm/arm_interface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h
index 978b1518f..c6691a8e1 100644
--- a/src/core/arm/arm_interface.h
+++ b/src/core/arm/arm_interface.h
@@ -5,6 +5,7 @@
#pragma once
#include <array>
+#include <vector>
#include "common/common_types.h"
namespace Common {
@@ -152,6 +153,16 @@ public:
/// Prepare core for thread reschedule (if needed to correctly handle state)
virtual void PrepareReschedule() = 0;
+ struct BacktraceEntry {
+ std::string module;
+ u64 address;
+ u64 original_address;
+ u64 offset;
+ std::string name;
+ };
+
+ std::vector<BacktraceEntry> GetBacktrace() const;
+
/// fp (= r29) points to the last frame record.
/// Note that this is the frame record for the *previous* frame, not the current one.
/// Note we need to subtract 4 from our last read to get the proper address