diff options
author | Alexander Drozdov <adrozdoff@gmail.com> | 2023-03-30 16:50:20 +1000 |
---|---|---|
committer | Alexander Drozdov <adrozdoff@gmail.com> | 2023-04-05 10:51:05 +0000 |
commit | 617d93761e895f908bb766dfc03a32c4aca73a3f (patch) | |
tree | aab7dfb84a4a112a0593441e80c2c6b3b104a146 | |
parent | e22d79fbb5368820a382469cf823fa3ba95c6531 (diff) | |
download | qt-creator-617d93761e895f908bb766dfc03a32c4aca73a3f.tar.gz |
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>
-rw-r--r-- | src/plugins/baremetal/debugservers/gdb/gdbserverprovider.h | 2 | ||||
-rw-r--r-- | src/plugins/baremetal/debugservers/gdb/genericgdbserverprovider.h | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.h b/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.h index eac2ca6e68..1c23d49995 100644 --- a/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.h +++ b/src/plugins/baremetal/debugservers/gdb/gdbserverprovider.h @@ -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; diff --git a/src/plugins/baremetal/debugservers/gdb/genericgdbserverprovider.h b/src/plugins/baremetal/debugservers/gdb/genericgdbserverprovider.h index 2754a3d91a..7a89877beb 100644 --- a/src/plugins/baremetal/debugservers/gdb/genericgdbserverprovider.h +++ b/src/plugins/baremetal/debugservers/gdb/genericgdbserverprovider.h @@ -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; |