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

Method changeMemoryRange

plugins/gdb/memviewdlg.cpp:187–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void MemoryView::changeMemoryRange()
188{
189 auto* const session = currentSessionWithStartedApp();
190 if (!session) return;
191
192 QString amount = m_rangeSelector->amountLineEdit->text();
193 if(amount.isEmpty())
194 amount = QLatin1String{"sizeof(*%1)"}.arg(m_rangeSelector->startAddressLineEdit->text());
195
196 session->addCommandWithCurrentSessionHandler(MI::DataEvaluateExpression, amount, this, &MemoryView::sizeComputed);
197}
198
199void MemoryView::sizeComputed(const MI::ResultRecord& record)
200{

Callers

nothing calls this directly

Calls 3

textMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected