Debugger: Handle throw/catch/main as BreakpointType enum values.

Remove BreakHandler::hasPendingBreakpoints, handle new types
in CDB and gdb. Start fixing Breakpoint-Dialog.
Add assignment of Breakpointresponse from BreakpointParameters.

Reviewed-by: hjk
This commit is contained in:
Friedemann Kleint
2010-11-16 10:23:20 +01:00
parent 3f366ef54b
commit 29beabd5a4
11 changed files with 187 additions and 144 deletions

View File

@@ -41,9 +41,6 @@ namespace Internal {
//
//////////////////////////////////////////////////////////////////
const char *BreakpointData::throwFunction = "throw";
const char *BreakpointData::catchFunction = "catch";
BreakpointParameters::BreakpointParameters(BreakpointType t) :
type(t), enabled(true), useFullPath(false),
ignoreCount(0), lineNumber(0), address(0)
@@ -52,7 +49,7 @@ BreakpointParameters::BreakpointParameters(BreakpointType t) :
bool BreakpointParameters::equals(const BreakpointParameters &rhs) const
{
return type != rhs.type && enabled == rhs.enabled
return type == rhs.type && enabled == rhs.enabled
&& useFullPath == rhs.useFullPath
&& fileName == rhs.fileName && condition == rhs.condition
&& ignoreCount == rhs.ignoreCount && lineNumber == rhs.lineNumber
@@ -168,5 +165,14 @@ QString BreakpointResponse::toString() const
return result;
}
void BreakpointResponse::fromParameters(const BreakpointParameters &p)
{
BreakpointParameters::operator=(p);
number = 0;
fullName.clear();
multiple = false;
state.clear();
}
} // namespace Internal
} // namespace Debugger