Index: lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h =================================================================== --- lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h +++ lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.h @@ -41,16 +41,14 @@ virtual Status ReadDBR(); virtual Status WriteDBR(); - virtual void *GetGPRBuffer() { return nullptr; } + virtual void *GetGPRBuffer() = 0; virtual size_t GetGPRSize() { return GetRegisterInfoInterface().GetGPRSize(); } - virtual void *GetFPRBuffer() { return nullptr; } - virtual size_t GetFPRSize() { return 0; } + virtual void *GetFPRBuffer() = 0; - virtual void *GetDBRBuffer() { return nullptr; } - virtual size_t GetDBRSize() { return 0; } + virtual void *GetDBRBuffer() = 0; virtual Status DoReadGPR(void *buf); virtual Status DoWriteGPR(void *buf); Index: lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp =================================================================== --- lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp +++ lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD.cpp @@ -26,49 +26,31 @@ Status NativeRegisterContextNetBSD::ReadGPR() { void *buf = GetGPRBuffer(); - if (!buf) - return Status("GPR buffer is NULL"); - return DoReadGPR(buf); } Status NativeRegisterContextNetBSD::WriteGPR() { void *buf = GetGPRBuffer(); - if (!buf) - return Status("GPR buffer is NULL"); - return DoWriteGPR(buf); } Status NativeRegisterContextNetBSD::ReadFPR() { void *buf = GetFPRBuffer(); - if (!buf) - return Status("FPR buffer is NULL"); - return DoReadFPR(buf); } Status NativeRegisterContextNetBSD::WriteFPR() { void *buf = GetFPRBuffer(); - if (!buf) - return Status("FPR buffer is NULL"); - return DoWriteFPR(buf); } Status NativeRegisterContextNetBSD::ReadDBR() { void *buf = GetDBRBuffer(); - if (!buf) - return Status("DBR buffer is NULL"); - return DoReadDBR(buf); } Status NativeRegisterContextNetBSD::WriteDBR() { void *buf = GetDBRBuffer(); - if (!buf) - return Status("DBR buffer is NULL"); - return DoWriteDBR(buf); } Index: lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h =================================================================== --- lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h +++ lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.h @@ -67,9 +67,9 @@ uint32_t NumSupportedHardwareWatchpoints() override; protected: - void *GetGPRBuffer() override { return &m_gpr_x86_64; } - void *GetFPRBuffer() override { return &m_fpr_x86_64; } - void *GetDBRBuffer() override { return &m_dbr_x86_64; } + void *GetGPRBuffer() { return &m_gpr_x86_64; } + void *GetFPRBuffer() { return &m_fpr_x86_64; } + void *GetDBRBuffer() { return &m_dbr_x86_64; } private: // Private member types.