-
Suggestion
-
Resolution: Done
-
P4: Low
-
None
-
None
Currently it is inconvenient to specify parameters of the remote GDB server for debugging of the BareMetal device. These parameters are restricted to the host/port fields for the BareMetal device. Besides, we need to startup of remote server manually before debugging (in common use-case).
It seems, it would be good to add to BareMetal plug-in the new features to manage of custom GDB servers. In this case the user can create some configurations of remote GDB servers and to choose (switch between) any of them to the debugging purpose. Besides, the configurations can automatically start/stop/re-configure of the GDB servers before debugging.
So, a user can choose any of three startup modes:
- NoStartup - just connect to remote GDB server
- StartupOnNetwork - start GDB server in TCP/IP mode and connect to.
- StartupOnPipe - start GDB server in Pipelining mode and connect to.
Note: Not all of modes can be supported by a concrete GDB server!
Currently are implemented the following hardware GDB servers:
- OpenOCD - support all modes
- STLink-Util - support NoStartup and StartupOnNetwork only
- Default - just allows connect to remote server.
Implementation of this concept in here: https://codereview.qt-project.org/102047
Also attached screenshots.