MCPcopy Create free account
hub / github.com/Vector35/debugger / SetProperty

Method SetProperty

core/adapters/lldbadapter.cpp:1585–1609  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1583
1584
1585bool LldbAdapter::SetProperty(const std::string& name, const Ref<Metadata>& value)
1586{
1587 if (name == "current_platform")
1588 {
1589 if (value->IsString())
1590 {
1591 auto platform = value->GetString();
1592 if (!platform.empty())
1593 {
1594 auto error = m_debugger.SetCurrentPlatform(platform.c_str());
1595 if (error.Success())
1596 return true;
1597 }
1598 }
1599 }
1600 else if (name == "current_process_plugin")
1601 {
1602 if (value->IsString())
1603 {
1604 m_processPlugin = value->GetString();
1605 return true;
1606 }
1607 }
1608 return false;
1609}
1610
1611
1612bool LldbAdapter::ConnectToDebugServer(const std::string& server, std::uint32_t port)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected