summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2022-06-11 18:23:19 -0400
committerGravatar Lioncash2022-06-11 18:23:22 -0400
commit80ad90651e72b21a51e43bbe5ec1b2215990b474 (patch)
tree46b79562f61cf7e9171827af60e77d9028c44737 /src
parentMerge pull request #8353 from Docteh/msvc_report_runtime (diff)
downloadyuzu-80ad90651e72b21a51e43bbe5ec1b2215990b474.tar.gz
yuzu-80ad90651e72b21a51e43bbe5ec1b2215990b474.tar.xz
yuzu-80ad90651e72b21a51e43bbe5ec1b2215990b474.zip
gdbstub_arch: Add missing virtual destructor
The class is used polymorphically, so it's undefined behavior to delete instances of GDBStubA64 and GDBStubA32 from the base class pointer.
Diffstat (limited to 'src')
-rw-r--r--src/core/debugger/gdbstub_arch.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/debugger/gdbstub_arch.h b/src/core/debugger/gdbstub_arch.h
index 4d039a9f7..2540d6456 100644
--- a/src/core/debugger/gdbstub_arch.h
+++ b/src/core/debugger/gdbstub_arch.h
@@ -15,6 +15,7 @@ namespace Core {
15 15
16class GDBStubArch { 16class GDBStubArch {
17public: 17public:
18 virtual ~GDBStubArch() = default;
18 virtual std::string GetTargetXML() const = 0; 19 virtual std::string GetTargetXML() const = 0;
19 virtual std::string RegRead(const Kernel::KThread* thread, size_t id) const = 0; 20 virtual std::string RegRead(const Kernel::KThread* thread, size_t id) const = 0;
20 virtual void RegWrite(Kernel::KThread* thread, size_t id, std::string_view value) const = 0; 21 virtual void RegWrite(Kernel::KThread* thread, size_t id, std::string_view value) const = 0;