From c22164d02eb377648d83b64cc18fbc46536aba81 Mon Sep 17 00:00:00 2001 From: Lu Zhen Date: Wed, 9 Jul 2025 09:54:29 +0800 Subject: [PATCH] chore: remove rr debugger install option Log: Change-Id: I5d94bac93f14d245a9bdcdc34377a59001367201 --- .gitignore | 3 ++- src/plugins/debugger/reversedebug/reversedebugger.cpp | 7 +------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 675269b24..9b0e2a913 100644 --- a/.gitignore +++ b/.gitignore @@ -74,5 +74,6 @@ doc/html/* # union code gen .unioncode *.unioncode +.cursor/ .cursorindexingignore -.specstory +.specstory/ diff --git a/src/plugins/debugger/reversedebug/reversedebugger.cpp b/src/plugins/debugger/reversedebug/reversedebugger.cpp index 46d14f126..7f36fd357 100644 --- a/src/plugins/debugger/reversedebug/reversedebugger.cpp +++ b/src/plugins/debugger/reversedebug/reversedebugger.cpp @@ -156,11 +156,6 @@ void installRR(const QString &id) if (id == "apt") { auto windowService = dpfGetService(dpfservice::WindowService); windowService->installPackages(ReverseDebugger::tr("Reverse debugger"), "apt", { "rr" }, nullptr); - } else if (id == "wget") { - auto terminalService = dpfGetService(dpfservice::TerminalService); - 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"; - uiController.switchContext(dpfservice::TERMINAL_TAB_TEXT); - terminalService->sendCommand(command); } } @@ -176,7 +171,7 @@ bool ReverseDebugger::checkRRInstalled() auto windowService = dpfGetService(dpfservice::WindowService); QString message = tr("Can not find rr debugger, please install it first. " "If installation is not possible or the software does not work after installation, you can try installing a higher version of rr through GitHub and then attempt to use it."); - windowService->notifyWithCallback(0, tr("Reverse Debug"), message, QStringList{"apt", tr("Install by apt"), "wget", tr("Install by Wget")}, installRR); + windowService->notifyWithCallback(0, tr("Reverse Debug"), message, QStringList{"apt", tr("Install by apt")}, installRR); process.close(); return false; }