forked from qt-creator/qt-creator
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:
@@ -40,7 +40,7 @@ public:
|
|||||||
bool aboutToRun(Debugger::DebuggerRunTool *runTool,
|
bool aboutToRun(Debugger::DebuggerRunTool *runTool,
|
||||||
QString &errorMessage) const final;
|
QString &errorMessage) const final;
|
||||||
ProjectExplorer::RunWorker *targetRunner(
|
ProjectExplorer::RunWorker *targetRunner(
|
||||||
ProjectExplorer::RunControl *runControl) const final;
|
ProjectExplorer::RunControl *runControl) const override;
|
||||||
|
|
||||||
bool isValid() const override;
|
bool isValid() const override;
|
||||||
virtual QSet<StartupMode> supportedStartupModes() const = 0;
|
virtual QSet<StartupMode> supportedStartupModes() const = 0;
|
||||||
|
@@ -19,6 +19,11 @@ class GenericGdbServerProvider final : public GdbServerProvider
|
|||||||
private:
|
private:
|
||||||
GenericGdbServerProvider();
|
GenericGdbServerProvider();
|
||||||
QSet<StartupMode> supportedStartupModes() const final;
|
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 GenericGdbServerProviderConfigWidget;
|
||||||
friend class GenericGdbServerProviderFactory;
|
friend class GenericGdbServerProviderFactory;
|
||||||
|
Reference in New Issue
Block a user