debugger: thread 0 is valid for cdb. so use -1 as 'any' value

This commit is contained in:
hjk
2010-12-14 13:00:02 +01:00
parent 7ef927ac6c
commit 6e17e7a3ab
6 changed files with 25 additions and 11 deletions

View File

@@ -2486,7 +2486,7 @@ void GdbEngine::insertBreakpoint(BreakpointId id)
} else if (m_gdbVersion >= 70000) {
int spec = handler->threadSpec(id);
cmd = "-break-insert ";
if (spec)
if (spec >= 0)
cmd += "-p " + QByteArray::number(spec);
cmd += " -f ";
} else if (m_gdbVersion >= 60800) {