MCPcopy Create free account
hub / github.com/KDE/kdevelop / setGeneralRegister

Method setGeneralRegister

plugins/debuggercommon/registers/registercontroller.cpp:197–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void IRegisterController::setGeneralRegister(const Register& reg, const GroupsName& group)
198{
199 if (!m_debugSession->acceptsCommands()) {
200 return;
201 }
202
203 const QString command = QStringLiteral("set var $%1=%2").arg(reg.name, reg.value);
204 qCDebug(DEBUGGERCOMMON) << "Setting register: " << command;
205
206 m_debugSession->addCommand(NonMI, command);
207 updateRegisters(group);
208}
209
210IRegisterController::IRegisterController(MIDebugSession* debugSession, const QStringList& debuggerRegisterNames,
211 QObject* parent)

Callers

nothing calls this directly

Calls 2

acceptsCommandsMethod · 0.80
addCommandMethod · 0.60

Tested by

no test coverage detected