| 246 | } |
| 247 | |
| 248 | void DisassemblyView::contextGoToAddress() |
| 249 | { |
| 250 | const QString title = tr("Go To In Disassembly"); |
| 251 | |
| 252 | AsyncDialogs::getText(this, title, "", "", [this](QString expression) { |
| 253 | u64 address = 0; |
| 254 | std::string error; |
| 255 | if (!cpu().evaluateExpression(expression.toStdString().c_str(), address, error)) |
| 256 | { |
| 257 | AsyncDialogs::warning(this, tr("Cannot Go To"), QString::fromStdString(error)); |
| 258 | return; |
| 259 | } |
| 260 | |
| 261 | gotoAddressAndSetFocus(static_cast<u32>(address) & ~3); |
| 262 | }); |
| 263 | } |
| 264 | |
| 265 | void DisassemblyView::contextAddFunction() |
| 266 | { |
nothing calls this directly
no test coverage detected