debugger: some basic support for 'catch catch' and 'catch throw'

Hidden in the Breakpoints context menu.
This commit is contained in:
hjk
2010-02-11 17:29:10 +01:00
parent 14d1edd5e2
commit 47fa65be6c
13 changed files with 87 additions and 15 deletions

View File

@@ -335,13 +335,15 @@ void BreakHandler::clear()
int BreakHandler::findBreakpoint(const BreakpointData &needle)
{
// looks for a breakpoint we might refer to
// Search a breakpoint we might refer to.
qDebug() << "NEEDLE: " << needle.toString();
for (int index = 0; index != size(); ++index) {
const BreakpointData *data = at(index);
// clear hit.
// Clear hit.
qDebug() << " TEST: " << data->toString();
if (data->bpNumber == needle.bpNumber)
return index;
// at least at a position we were looking for
// At least at a position we were looking for.
// FIXME: breaks multiple breakpoints at the same location
if (fileNameMatch(data->fileName, needle.bpFileName)
&& data->lineNumber == needle.bpLineNumber)