forked from qt-creator/qt-creator
Debugger: Try harder to find a usable device
In remote setups without proper run configuration (e.g. attach using the menu) there was no device available. In some situation there's access to a kit, though, containing the right device. Use it. Task-number: QTCREATORBUG-20331 Change-Id: I54523f71fc10c9959901f36f3d62872d139279e5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -884,6 +884,12 @@ RunControl::RunControl(RunConfiguration *runConfiguration, Core::Id mode) :
|
||||
#endif
|
||||
}
|
||||
|
||||
RunControl::RunControl(const IDevice::ConstPtr &device, Core::Id mode)
|
||||
: RunControl(nullptr, mode)
|
||||
{
|
||||
d->device = device;
|
||||
}
|
||||
|
||||
RunControl::~RunControl()
|
||||
{
|
||||
#ifdef WITH_JOURNALD
|
||||
|
||||
Reference in New Issue
Block a user