[lldb] Remove reproducer instrumentation

This patch removes most of the reproducer instrumentation. It keeps
around the LLDB_RECORD_* macros for logging. See [1] for more details.

[1] https://lists.llvm.org/pipermail/lldb-dev/2021-September/017045.html

Differential revision: https://reviews.llvm.org/D116847
This commit is contained in:
Jonas Devlieghere
2022-01-07 16:26:40 -08:00
parent 4a8549354c
commit d51402ac6b
74 changed files with 77 additions and 6208 deletions

View File

@@ -7,7 +7,7 @@
//===----------------------------------------------------------------------===//
#include "lldb/API/SBThread.h"
#include "SBReproducerPrivate.h"
#include "lldb/Utility/ReproducerInstrumentation.h"
#include "Utils.h"
#include "lldb/API/SBAddress.h"
#include "lldb/API/SBDebugger.h"
@@ -1363,110 +1363,3 @@ lldb_private::Thread *SBThread::operator->() {
lldb_private::Thread *SBThread::get() {
return m_opaque_sp->GetThreadSP().get();
}
namespace lldb_private {
namespace repro {
template <>
void RegisterMethods<SBThread>(Registry &R) {
LLDB_REGISTER_STATIC_METHOD(const char *, SBThread, GetBroadcasterClassName,
());
LLDB_REGISTER_CONSTRUCTOR(SBThread, ());
LLDB_REGISTER_CONSTRUCTOR(SBThread, (const lldb::ThreadSP &));
LLDB_REGISTER_CONSTRUCTOR(SBThread, (const lldb::SBThread &));
LLDB_REGISTER_METHOD(const lldb::SBThread &,
SBThread, operator=,(const lldb::SBThread &));
LLDB_REGISTER_METHOD_CONST(lldb::SBQueue, SBThread, GetQueue, ());
LLDB_REGISTER_METHOD_CONST(bool, SBThread, IsValid, ());
LLDB_REGISTER_METHOD_CONST(bool, SBThread, operator bool, ());
LLDB_REGISTER_METHOD(void, SBThread, Clear, ());
LLDB_REGISTER_METHOD(lldb::StopReason, SBThread, GetStopReason, ());
LLDB_REGISTER_METHOD(size_t, SBThread, GetStopReasonDataCount, ());
LLDB_REGISTER_METHOD(uint64_t, SBThread, GetStopReasonDataAtIndex,
(uint32_t));
LLDB_REGISTER_METHOD(bool, SBThread, GetStopReasonExtendedInfoAsJSON,
(lldb::SBStream &));
LLDB_REGISTER_METHOD(lldb::SBThreadCollection, SBThread,
GetStopReasonExtendedBacktraces,
(lldb::InstrumentationRuntimeType));
LLDB_REGISTER_METHOD(lldb::SBValue, SBThread, GetStopReturnValue, ());
LLDB_REGISTER_METHOD_CONST(lldb::tid_t, SBThread, GetThreadID, ());
LLDB_REGISTER_METHOD_CONST(uint32_t, SBThread, GetIndexID, ());
LLDB_REGISTER_METHOD_CONST(const char *, SBThread, GetName, ());
LLDB_REGISTER_METHOD_CONST(const char *, SBThread, GetQueueName, ());
LLDB_REGISTER_METHOD_CONST(lldb::queue_id_t, SBThread, GetQueueID, ());
LLDB_REGISTER_METHOD(bool, SBThread, GetInfoItemByPathAsString,
(const char *, lldb::SBStream &));
LLDB_REGISTER_METHOD(void, SBThread, StepOver, (lldb::RunMode));
LLDB_REGISTER_METHOD(void, SBThread, StepOver,
(lldb::RunMode, lldb::SBError &));
LLDB_REGISTER_METHOD(void, SBThread, StepInto, (lldb::RunMode));
LLDB_REGISTER_METHOD(void, SBThread, StepInto,
(const char *, lldb::RunMode));
LLDB_REGISTER_METHOD(
void, SBThread, StepInto,
(const char *, uint32_t, lldb::SBError &, lldb::RunMode));
LLDB_REGISTER_METHOD(void, SBThread, StepOut, ());
LLDB_REGISTER_METHOD(void, SBThread, StepOut, (lldb::SBError &));
LLDB_REGISTER_METHOD(void, SBThread, StepOutOfFrame, (lldb::SBFrame &));
LLDB_REGISTER_METHOD(void, SBThread, StepOutOfFrame,
(lldb::SBFrame &, lldb::SBError &));
LLDB_REGISTER_METHOD(void, SBThread, StepInstruction, (bool));
LLDB_REGISTER_METHOD(void, SBThread, StepInstruction,
(bool, lldb::SBError &));
LLDB_REGISTER_METHOD(void, SBThread, RunToAddress, (lldb::addr_t));
LLDB_REGISTER_METHOD(void, SBThread, RunToAddress,
(lldb::addr_t, lldb::SBError &));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, StepOverUntil,
(lldb::SBFrame &, lldb::SBFileSpec &, uint32_t));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, StepUsingScriptedThreadPlan,
(const char *));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, StepUsingScriptedThreadPlan,
(const char *, bool));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, StepUsingScriptedThreadPlan,
(const char *, SBStructuredData &, bool));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, JumpToLine,
(lldb::SBFileSpec &, uint32_t));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, ReturnFromFrame,
(lldb::SBFrame &, lldb::SBValue &));
LLDB_REGISTER_METHOD(lldb::SBError, SBThread, UnwindInnermostExpression,
());
LLDB_REGISTER_METHOD(bool, SBThread, Suspend, ());
LLDB_REGISTER_METHOD(bool, SBThread, Suspend, (lldb::SBError &));
LLDB_REGISTER_METHOD(bool, SBThread, Resume, ());
LLDB_REGISTER_METHOD(bool, SBThread, Resume, (lldb::SBError &));
LLDB_REGISTER_METHOD(bool, SBThread, IsSuspended, ());
LLDB_REGISTER_METHOD(bool, SBThread, IsStopped, ());
LLDB_REGISTER_METHOD(lldb::SBProcess, SBThread, GetProcess, ());
LLDB_REGISTER_METHOD(uint32_t, SBThread, GetNumFrames, ());
LLDB_REGISTER_METHOD(lldb::SBFrame, SBThread, GetFrameAtIndex, (uint32_t));
LLDB_REGISTER_METHOD(lldb::SBFrame, SBThread, GetSelectedFrame, ());
LLDB_REGISTER_METHOD(lldb::SBFrame, SBThread, SetSelectedFrame, (uint32_t));
LLDB_REGISTER_STATIC_METHOD(bool, SBThread, EventIsThreadEvent,
(const lldb::SBEvent &));
LLDB_REGISTER_STATIC_METHOD(lldb::SBFrame, SBThread, GetStackFrameFromEvent,
(const lldb::SBEvent &));
LLDB_REGISTER_STATIC_METHOD(lldb::SBThread, SBThread, GetThreadFromEvent,
(const lldb::SBEvent &));
LLDB_REGISTER_METHOD_CONST(bool,
SBThread, operator==,(const lldb::SBThread &));
LLDB_REGISTER_METHOD_CONST(bool,
SBThread, operator!=,(const lldb::SBThread &));
LLDB_REGISTER_METHOD_CONST(bool, SBThread, GetStatus, (lldb::SBStream &));
LLDB_REGISTER_METHOD_CONST(bool, SBThread, GetDescription,
(lldb::SBStream &));
LLDB_REGISTER_METHOD_CONST(bool, SBThread, GetDescription,
(lldb::SBStream &, bool));
LLDB_REGISTER_METHOD(lldb::SBThread, SBThread, GetExtendedBacktraceThread,
(const char *));
LLDB_REGISTER_METHOD(uint32_t, SBThread,
GetExtendedBacktraceOriginatingIndexID, ());
LLDB_REGISTER_METHOD(lldb::SBValue, SBThread, GetCurrentException, ());
LLDB_REGISTER_METHOD(lldb::SBThread, SBThread, GetCurrentExceptionBacktrace,
());
LLDB_REGISTER_METHOD(bool, SBThread, SafeToCallFunctions, ());
LLDB_REGISTER_CHAR_PTR_METHOD(size_t, SBThread, GetStopDescription);
}
}
}