Skip to content
Snippets Groups Projects
Commit 80ad9065 authored by Lioncash's avatar Lioncash
Browse files

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.
parent b94739cf
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment