| 152 | } |
| 153 | |
| 154 | void installRR(const QString &id) |
| 155 | { |
| 156 | if (id == "apt") { |
| 157 | auto windowService = dpfGetService(dpfservice::WindowService); |
| 158 | windowService->installPackages(ReverseDebugger::tr("Reverse debugger"), "apt", { "rr" }, nullptr); |
| 159 | } else if (id == "wget") { |
| 160 | auto terminalService = dpfGetService(dpfservice::TerminalService); |
| 161 | auto command = "cd /tmp && wget https://github.com/rr-debugger/rr/releases/download/5.5.0/rr-5.5.0-Linux-x86_64.deb && sudo dpkg -i rr-5.5.0-Linux-x86_64.deb"; |
| 162 | uiController.switchContext(dpfservice::TERMINAL_TAB_TEXT); |
| 163 | terminalService->sendCommand(command); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | bool ReverseDebugger::checkRRInstalled() |
| 168 | { |
nothing calls this directly
no test coverage detected