forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user