forked from qt-creator/qt-creator
WinRT: Enable debugging for local packages.
Change-Id: Ic04f1a471f951caf7a79c69cceecb0ebd5d09919 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -135,18 +135,6 @@ int breakPointIdToCdbId(const BreakpointModelId &id)
|
||||
return cdbBreakPointStartId + id.majorPart() * cdbBreakPointIdMinorPart + id.minorPart();
|
||||
}
|
||||
|
||||
template <class ModelId>
|
||||
inline ModelId cdbIdToBreakpointId(const GdbMi &data)
|
||||
{
|
||||
if (data.isValid()) { // Might not be valid if there is not id
|
||||
bool ok;
|
||||
const int id = data.data().toInt(&ok);
|
||||
if (ok)
|
||||
return cdbIdToBreakpointId<ModelId>(id);
|
||||
}
|
||||
return ModelId();
|
||||
}
|
||||
|
||||
template <class ModelId>
|
||||
inline ModelId cdbIdToBreakpointId(const int &id)
|
||||
{
|
||||
@@ -161,6 +149,18 @@ inline ModelId cdbIdToBreakpointId(const int &id)
|
||||
return ModelId();
|
||||
}
|
||||
|
||||
template <class ModelId>
|
||||
inline ModelId cdbIdToBreakpointId(const GdbMi &data)
|
||||
{
|
||||
if (data.isValid()) { // Might not be valid if there is not id
|
||||
bool ok;
|
||||
const int id = data.data().toInt(&ok);
|
||||
if (ok)
|
||||
return cdbIdToBreakpointId<ModelId>(id);
|
||||
}
|
||||
return ModelId();
|
||||
}
|
||||
|
||||
BreakpointModelId cdbIdToBreakpointModelId(const GdbMi &id)
|
||||
{
|
||||
return cdbIdToBreakpointId<BreakpointModelId>(id);
|
||||
|
||||
Reference in New Issue
Block a user