aboutsummaryrefslogtreecommitdiff
path: root/src/core/debugger/gdbstub_arch.h
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2022-06-11 18:23:19 -0400
committerLioncash <mathew1800@gmail.com>2022-06-11 18:23:22 -0400
commit80ad90651e72b21a51e43bbe5ec1b2215990b474 (patch)
tree46b79562f61cf7e9171827af60e77d9028c44737 /src/core/debugger/gdbstub_arch.h
parentb94739cfa7f4b9ff515a527e00a915437417eca7 (diff)
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/core/debugger/gdbstub_arch.h')
-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 4d039a9f7d..2540d64566 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;