Debugger: Fix compilation, centralize breakpoint type detection.

Reviewed-by: hjk
This commit is contained in:
Friedemann Kleint
2010-11-26 13:06:03 +01:00
parent 61e99b3deb
commit a4d7fb2f06
10 changed files with 56 additions and 11 deletions

View File

@@ -344,7 +344,7 @@ DebuggerEngineType DebuggerRunControlPrivate::engineForExecutable
// We need the CDB debugger in order to be able to debug VS
// executables.
if (d->checkDebugConfiguration(ProjectExplorer::ToolChain_MSVC,
if (DebuggerRunControl::checkDebugConfiguration(ProjectExplorer::ToolChain_MSVC,
&m_errorMessage, 0, &m_settingsIdHint)) {
if (enabledEngineTypes & CdbEngineType)
return CdbEngineType;
@@ -372,7 +372,7 @@ DebuggerEngineType DebuggerRunControlPrivate::engineForMode
if (startMode != AttachToRemote && (enabledEngineTypes & CdbEngineType))
return CdbEngineType;
if (startMode == AttachCrashedExternal) {
m_errorMessage = tr("There is no debugging engine available for post-mortem debugging.");
m_errorMessage = DebuggerRunControl::tr("There is no debugging engine available for post-mortem debugging.");
return NoEngineType;
}
return GdbEngineType;