| 185 | } |
| 186 | |
| 187 | void 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 | |
| 199 | void MemoryView::sizeComputed(const MI::ResultRecord& record) |
| 200 | { |
nothing calls this directly
no test coverage detected