Debugger: New breakpoint types in CDB.

Emulate exec() by breaking on CreateProcessW().
This commit is contained in:
Friedemann Kleint
2011-03-07 11:02:07 +01:00
parent c9c10aa41f
commit fcdbdcaee0
4 changed files with 62 additions and 41 deletions

View File

@@ -389,29 +389,5 @@ bool isFatalWinException(long code)
return true;
}
// Special function names in MSVC runtime
const char *winMSVCThrowFunction = "CxxThrowException";
const char *winMSVCCatchFunction = "__CxxCallCatchBlock";
BreakpointParameters fixWinMSVCBreakpoint(const BreakpointParameters &p)
{
if (p.type == BreakpointAtThrow) {
BreakpointParameters rc(BreakpointByFunction);
rc.functionName = QLatin1String(winMSVCThrowFunction);
return rc;
}
if (p.type == BreakpointAtCatch) {
BreakpointParameters rc(BreakpointByFunction);
rc.functionName = QLatin1String(winMSVCCatchFunction);
return rc;
}
if (p.type == BreakpointAtMain) {
BreakpointParameters rc(BreakpointByFunction);
rc.functionName = QLatin1String("main");
return rc;
}
return p;
}
} // namespace Internal
} // namespace Debugger