forked from qt-creator/qt-creator
debugger: add support for temporary breakpoints
Change-Id: I841c37d21932da0ef354dbbe2fd75cec2fae86d6 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -321,6 +321,8 @@ void BreakHandler::saveBreakpoints()
|
||||
map.insert(_("threadspec"), data.threadSpec);
|
||||
if (!data.enabled)
|
||||
map.insert(_("disabled"), one);
|
||||
if (data.oneShot)
|
||||
map.insert(_("oneshot"), one);
|
||||
if (data.pathUsage != BreakpointPathUsageEngineDefault)
|
||||
map.insert(_("usefullpath"), QString::number(data.pathUsage));
|
||||
if (data.tracepoint)
|
||||
@@ -373,6 +375,9 @@ void BreakHandler::loadBreakpoints()
|
||||
v = map.value(_("disabled"));
|
||||
if (v.isValid())
|
||||
data.enabled = !v.toInt();
|
||||
v = map.value(_("oneshot"));
|
||||
if (v.isValid())
|
||||
data.oneShot = v.toInt();
|
||||
v = map.value(_("usefullpath"));
|
||||
if (v.isValid())
|
||||
data.pathUsage = static_cast<BreakpointPathUsage>(v.toInt());
|
||||
@@ -768,6 +773,13 @@ bool BreakHandler::isTracepoint(BreakpointModelId id) const
|
||||
return it->data.tracepoint;
|
||||
}
|
||||
|
||||
bool BreakHandler::isOneShot(BreakpointModelId id) const
|
||||
{
|
||||
ConstIterator it = m_storage.find(id);
|
||||
BREAK_ASSERT(it != m_storage.end(), return false);
|
||||
return it->data.oneShot;
|
||||
}
|
||||
|
||||
bool BreakHandler::needsChildren(BreakpointModelId id) const
|
||||
{
|
||||
ConstIterator it = m_storage.find(id);
|
||||
|
||||
Reference in New Issue
Block a user