BareMetal: Continue minimize dependency from GDB engine

The BareMetalDevice and the BareMetalDebugSupport classes should
not know anything about the specific implementation of the providers.

For this purpose, we just extend a providers by a new virtual methods
which are should be overridden for a concrete provider.

Change-Id: Ic5fef49f6b79e0ee7e8c4c386b4ed36cb5346dc1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Denis Shienkov
2019-11-18 19:06:17 +03:00
parent cc85cdf8d1
commit cab228d05a
13 changed files with 151 additions and 92 deletions

View File

@@ -23,6 +23,7 @@
**
****************************************************************************/
#include "gdbserverproviderprocess.h"
#include "jlinkgdbserverprovider.h"
#include <baremetal/baremetalconstants.h>
@@ -142,6 +143,13 @@ bool JLinkGdbServerProvider::isValid() const
return true;
}
ProjectExplorer::DeviceProcess *JLinkGdbServerProvider::createProcess(
const QSharedPointer<const ProjectExplorer::IDevice> &device,
QObject *parent) const
{
return new GdbServerProviderProcess(device, parent);
}
GdbServerProvider *JLinkGdbServerProvider::clone() const
{
return new JLinkGdbServerProvider(*this);