forked from qt-creator/qt-creator
Debugger: Add basic breakpoint handling and stepping to LLDB backend
Change-Id: Ib700afa63739e6d26bdd97225265559d7112eadb Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -123,7 +123,8 @@ static QString typeToString(BreakpointType type)
|
||||
return BreakHandler::tr("Breakpoint on QML Signal Emit");
|
||||
case BreakpointAtJavaScriptThrow:
|
||||
return BreakHandler::tr("Breakpoint at JavaScript throw");
|
||||
case UnknownType:
|
||||
case UnknownBreakpointType:
|
||||
case LastBreakpointType:
|
||||
break;
|
||||
}
|
||||
return BreakHandler::tr("Unknown Breakpoint Type");
|
||||
@@ -189,7 +190,7 @@ static bool isSimilarTo(const BreakpointParameters &data, const BreakpointRespon
|
||||
{
|
||||
// Clear hit.
|
||||
// Clear miss.
|
||||
if (needle.type != UnknownType && data.type != UnknownType
|
||||
if (needle.type != UnknownBreakpointType && data.type != UnknownBreakpointType
|
||||
&& data.type != needle.type)
|
||||
return false;
|
||||
|
||||
@@ -382,7 +383,7 @@ void BreakHandler::loadBreakpoints()
|
||||
if (v.isValid())
|
||||
data.tracepoint = bool(v.toInt());
|
||||
v = map.value(_("type"));
|
||||
if (v.isValid() && v.toInt() != UnknownType)
|
||||
if (v.isValid() && v.toInt() != UnknownBreakpointType)
|
||||
data.type = BreakpointType(v.toInt());
|
||||
v = map.value(_("module"));
|
||||
if (v.isValid())
|
||||
|
||||
Reference in New Issue
Block a user