forked from OSchip/llvm-project
[lldb] Add missing LLDB_REGISTER for GarbageCollectAllocatedModules
Add the missing LLDB_REGISTER_STATIC_METHOD macro and format the file.
This commit is contained in:
parent
b0ceff94d6
commit
e095e98a3a
|
@ -67,8 +67,8 @@ SBModule::SBModule(lldb::SBProcess &process, lldb::addr_t header_addr)
|
||||||
}
|
}
|
||||||
|
|
||||||
const SBModule &SBModule::operator=(const SBModule &rhs) {
|
const SBModule &SBModule::operator=(const SBModule &rhs) {
|
||||||
LLDB_RECORD_METHOD(const lldb::SBModule &,
|
LLDB_RECORD_METHOD(const lldb::SBModule &, SBModule, operator=,
|
||||||
SBModule, operator=,(const lldb::SBModule &), rhs);
|
(const lldb::SBModule &), rhs);
|
||||||
|
|
||||||
if (this != &rhs)
|
if (this != &rhs)
|
||||||
m_opaque_sp = rhs.m_opaque_sp;
|
m_opaque_sp = rhs.m_opaque_sp;
|
||||||
|
@ -108,7 +108,6 @@ lldb::SBFileSpec SBModule::GetPlatformFileSpec() const {
|
||||||
LLDB_RECORD_METHOD_CONST_NO_ARGS(lldb::SBFileSpec, SBModule,
|
LLDB_RECORD_METHOD_CONST_NO_ARGS(lldb::SBFileSpec, SBModule,
|
||||||
GetPlatformFileSpec);
|
GetPlatformFileSpec);
|
||||||
|
|
||||||
|
|
||||||
SBFileSpec file_spec;
|
SBFileSpec file_spec;
|
||||||
ModuleSP module_sp(GetSP());
|
ModuleSP module_sp(GetSP());
|
||||||
if (module_sp)
|
if (module_sp)
|
||||||
|
@ -187,7 +186,7 @@ const char *SBModule::GetUUIDString() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SBModule::operator==(const SBModule &rhs) const {
|
bool SBModule::operator==(const SBModule &rhs) const {
|
||||||
LLDB_RECORD_METHOD_CONST(bool, SBModule, operator==,(const lldb::SBModule &),
|
LLDB_RECORD_METHOD_CONST(bool, SBModule, operator==, (const lldb::SBModule &),
|
||||||
rhs);
|
rhs);
|
||||||
|
|
||||||
if (m_opaque_sp)
|
if (m_opaque_sp)
|
||||||
|
@ -196,7 +195,7 @@ bool SBModule::operator==(const SBModule &rhs) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SBModule::operator!=(const SBModule &rhs) const {
|
bool SBModule::operator!=(const SBModule &rhs) const {
|
||||||
LLDB_RECORD_METHOD_CONST(bool, SBModule, operator!=,(const lldb::SBModule &),
|
LLDB_RECORD_METHOD_CONST(bool, SBModule, operator!=, (const lldb::SBModule &),
|
||||||
rhs);
|
rhs);
|
||||||
|
|
||||||
if (m_opaque_sp)
|
if (m_opaque_sp)
|
||||||
|
@ -625,7 +624,7 @@ uint32_t SBModule::GetVersion(uint32_t *versions, uint32_t num_versions) {
|
||||||
++result;
|
++result;
|
||||||
if (version.getMinor())
|
if (version.getMinor())
|
||||||
++result;
|
++result;
|
||||||
if(version.getSubminor())
|
if (version.getSubminor())
|
||||||
++result;
|
++result;
|
||||||
|
|
||||||
if (!versions)
|
if (!versions)
|
||||||
|
@ -693,6 +692,7 @@ uint32_t SBModule::GetNumberAllocatedModules() {
|
||||||
void SBModule::GarbageCollectAllocatedModules() {
|
void SBModule::GarbageCollectAllocatedModules() {
|
||||||
LLDB_RECORD_STATIC_METHOD_NO_ARGS(void, SBModule,
|
LLDB_RECORD_STATIC_METHOD_NO_ARGS(void, SBModule,
|
||||||
GarbageCollectAllocatedModules);
|
GarbageCollectAllocatedModules);
|
||||||
|
|
||||||
const bool mandatory = false;
|
const bool mandatory = false;
|
||||||
ModuleList::RemoveOrphanSharedModules(mandatory);
|
ModuleList::RemoveOrphanSharedModules(mandatory);
|
||||||
}
|
}
|
||||||
|
@ -700,14 +700,13 @@ void SBModule::GarbageCollectAllocatedModules() {
|
||||||
namespace lldb_private {
|
namespace lldb_private {
|
||||||
namespace repro {
|
namespace repro {
|
||||||
|
|
||||||
template <>
|
template <> void RegisterMethods<SBModule>(Registry &R) {
|
||||||
void RegisterMethods<SBModule>(Registry &R) {
|
|
||||||
LLDB_REGISTER_CONSTRUCTOR(SBModule, ());
|
LLDB_REGISTER_CONSTRUCTOR(SBModule, ());
|
||||||
LLDB_REGISTER_CONSTRUCTOR(SBModule, (const lldb::SBModuleSpec &));
|
LLDB_REGISTER_CONSTRUCTOR(SBModule, (const lldb::SBModuleSpec &));
|
||||||
LLDB_REGISTER_CONSTRUCTOR(SBModule, (const lldb::SBModule &));
|
LLDB_REGISTER_CONSTRUCTOR(SBModule, (const lldb::SBModule &));
|
||||||
LLDB_REGISTER_CONSTRUCTOR(SBModule, (lldb::SBProcess &, lldb::addr_t));
|
LLDB_REGISTER_CONSTRUCTOR(SBModule, (lldb::SBProcess &, lldb::addr_t));
|
||||||
LLDB_REGISTER_METHOD(const lldb::SBModule &,
|
LLDB_REGISTER_METHOD(const lldb::SBModule &, SBModule, operator=,
|
||||||
SBModule, operator=,(const lldb::SBModule &));
|
(const lldb::SBModule &));
|
||||||
LLDB_REGISTER_METHOD_CONST(bool, SBModule, IsValid, ());
|
LLDB_REGISTER_METHOD_CONST(bool, SBModule, IsValid, ());
|
||||||
LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator bool, ());
|
LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator bool, ());
|
||||||
LLDB_REGISTER_METHOD(void, SBModule, Clear, ());
|
LLDB_REGISTER_METHOD(void, SBModule, Clear, ());
|
||||||
|
@ -721,10 +720,10 @@ void RegisterMethods<SBModule>(Registry &R) {
|
||||||
LLDB_REGISTER_METHOD(bool, SBModule, SetRemoteInstallFileSpec,
|
LLDB_REGISTER_METHOD(bool, SBModule, SetRemoteInstallFileSpec,
|
||||||
(lldb::SBFileSpec &));
|
(lldb::SBFileSpec &));
|
||||||
LLDB_REGISTER_METHOD_CONST(const char *, SBModule, GetUUIDString, ());
|
LLDB_REGISTER_METHOD_CONST(const char *, SBModule, GetUUIDString, ());
|
||||||
LLDB_REGISTER_METHOD_CONST(bool,
|
LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator==,
|
||||||
SBModule, operator==,(const lldb::SBModule &));
|
(const lldb::SBModule &));
|
||||||
LLDB_REGISTER_METHOD_CONST(bool,
|
LLDB_REGISTER_METHOD_CONST(bool, SBModule, operator!=,
|
||||||
SBModule, operator!=,(const lldb::SBModule &));
|
(const lldb::SBModule &));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBAddress, SBModule, ResolveFileAddress,
|
LLDB_REGISTER_METHOD(lldb::SBAddress, SBModule, ResolveFileAddress,
|
||||||
(lldb::addr_t));
|
(lldb::addr_t));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBSymbolContext, SBModule,
|
LLDB_REGISTER_METHOD(lldb::SBSymbolContext, SBModule,
|
||||||
|
@ -743,8 +742,7 @@ void RegisterMethods<SBModule>(Registry &R) {
|
||||||
LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindSymbols,
|
LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindSymbols,
|
||||||
(const char *, lldb::SymbolType));
|
(const char *, lldb::SymbolType));
|
||||||
LLDB_REGISTER_METHOD(size_t, SBModule, GetNumSections, ());
|
LLDB_REGISTER_METHOD(size_t, SBModule, GetNumSections, ());
|
||||||
LLDB_REGISTER_METHOD(lldb::SBSection, SBModule, GetSectionAtIndex,
|
LLDB_REGISTER_METHOD(lldb::SBSection, SBModule, GetSectionAtIndex, (size_t));
|
||||||
(size_t));
|
|
||||||
LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindFunctions,
|
LLDB_REGISTER_METHOD(lldb::SBSymbolContextList, SBModule, FindFunctions,
|
||||||
(const char *, uint32_t));
|
(const char *, uint32_t));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBValueList, SBModule, FindGlobalVariables,
|
LLDB_REGISTER_METHOD(lldb::SBValueList, SBModule, FindGlobalVariables,
|
||||||
|
@ -752,28 +750,25 @@ void RegisterMethods<SBModule>(Registry &R) {
|
||||||
LLDB_REGISTER_METHOD(lldb::SBValue, SBModule, FindFirstGlobalVariable,
|
LLDB_REGISTER_METHOD(lldb::SBValue, SBModule, FindFirstGlobalVariable,
|
||||||
(lldb::SBTarget &, const char *));
|
(lldb::SBTarget &, const char *));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBType, SBModule, FindFirstType, (const char *));
|
LLDB_REGISTER_METHOD(lldb::SBType, SBModule, FindFirstType, (const char *));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBType, SBModule, GetBasicType,
|
LLDB_REGISTER_METHOD(lldb::SBType, SBModule, GetBasicType, (lldb::BasicType));
|
||||||
(lldb::BasicType));
|
|
||||||
LLDB_REGISTER_METHOD(lldb::SBTypeList, SBModule, FindTypes, (const char *));
|
LLDB_REGISTER_METHOD(lldb::SBTypeList, SBModule, FindTypes, (const char *));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBType, SBModule, GetTypeByID,
|
LLDB_REGISTER_METHOD(lldb::SBType, SBModule, GetTypeByID, (lldb::user_id_t));
|
||||||
(lldb::user_id_t));
|
|
||||||
LLDB_REGISTER_METHOD(lldb::SBTypeList, SBModule, GetTypes, (uint32_t));
|
LLDB_REGISTER_METHOD(lldb::SBTypeList, SBModule, GetTypes, (uint32_t));
|
||||||
LLDB_REGISTER_METHOD(lldb::SBSection, SBModule, FindSection,
|
LLDB_REGISTER_METHOD(lldb::SBSection, SBModule, FindSection, (const char *));
|
||||||
(const char *));
|
|
||||||
LLDB_REGISTER_METHOD(lldb::ByteOrder, SBModule, GetByteOrder, ());
|
LLDB_REGISTER_METHOD(lldb::ByteOrder, SBModule, GetByteOrder, ());
|
||||||
LLDB_REGISTER_METHOD(const char *, SBModule, GetTriple, ());
|
LLDB_REGISTER_METHOD(const char *, SBModule, GetTriple, ());
|
||||||
LLDB_REGISTER_METHOD(uint32_t, SBModule, GetAddressByteSize, ());
|
LLDB_REGISTER_METHOD(uint32_t, SBModule, GetAddressByteSize, ());
|
||||||
LLDB_REGISTER_METHOD(uint32_t, SBModule, GetVersion,
|
LLDB_REGISTER_METHOD(uint32_t, SBModule, GetVersion, (uint32_t *, uint32_t));
|
||||||
(uint32_t *, uint32_t));
|
LLDB_REGISTER_METHOD_CONST(lldb::SBFileSpec, SBModule, GetSymbolFileSpec, ());
|
||||||
LLDB_REGISTER_METHOD_CONST(lldb::SBFileSpec, SBModule, GetSymbolFileSpec,
|
|
||||||
());
|
|
||||||
LLDB_REGISTER_METHOD_CONST(lldb::SBAddress, SBModule,
|
LLDB_REGISTER_METHOD_CONST(lldb::SBAddress, SBModule,
|
||||||
GetObjectFileHeaderAddress, ());
|
GetObjectFileHeaderAddress, ());
|
||||||
LLDB_REGISTER_METHOD_CONST(lldb::SBAddress, SBModule,
|
LLDB_REGISTER_METHOD_CONST(lldb::SBAddress, SBModule,
|
||||||
GetObjectFileEntryPointAddress, ());
|
GetObjectFileEntryPointAddress, ());
|
||||||
LLDB_REGISTER_STATIC_METHOD(uint32_t, SBModule, GetNumberAllocatedModules,
|
LLDB_REGISTER_STATIC_METHOD(uint32_t, SBModule, GetNumberAllocatedModules,
|
||||||
());
|
());
|
||||||
|
LLDB_REGISTER_STATIC_METHOD(void, SBModule, GarbageCollectAllocatedModules,
|
||||||
|
());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} // namespace repro
|
||||||
}
|
} // namespace lldb_private
|
||||||
|
|
Loading…
Reference in New Issue