BareMetal: add ability to connect to already running GdbServer

Allow GenericGdbServerProvider connect via TCP to the already running
GdbServers. Useful for the remote debugging for BareMetal devices
like Xilinx UltraScape+ PSU: Xilinx provide his closed hw_server
component that allow a Gdb connections.

Change-Id: Ifd3af542a83d3357db366d6842461c2b2e49c4e5
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alexander Drozdov
2023-03-30 16:50:20 +10:00
parent e22d79fbb5
commit 617d93761e
2 changed files with 6 additions and 1 deletions

View File

@@ -40,7 +40,7 @@ public:
bool aboutToRun(Debugger::DebuggerRunTool *runTool,
QString &errorMessage) const final;
ProjectExplorer::RunWorker *targetRunner(
ProjectExplorer::RunControl *runControl) const final;
ProjectExplorer::RunControl *runControl) const override;
bool isValid() const override;
virtual QSet<StartupMode> supportedStartupModes() const = 0;

View File

@@ -19,6 +19,11 @@ class GenericGdbServerProvider final : public GdbServerProvider
private:
GenericGdbServerProvider();
QSet<StartupMode> supportedStartupModes() const final;
ProjectExplorer::RunWorker *targetRunner(
ProjectExplorer::RunControl *runControl) const final {
// Generic Runner assumes GDB Server already running
return nullptr;
}
friend class GenericGdbServerProviderConfigWidget;
friend class GenericGdbServerProviderFactory;