From 80ad90651e72b21a51e43bbe5ec1b2215990b474 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 11 Jun 2022 18:23:19 -0400 Subject: 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. --- src/core/debugger/gdbstub_arch.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 { class GDBStubArch { public: + virtual ~GDBStubArch() = default; virtual std::string GetTargetXML() const = 0; virtual std::string RegRead(const Kernel::KThread* thread, size_t id) const = 0; virtual void RegWrite(Kernel::KThread* thread, size_t id, std::string_view value) const = 0; -- cgit v1.2.3