Debugger: Do not set absolute breakpoints for remote targets

Fixes a regression introduced by cb857b47a

Task-number: QTCREATORBUG-9226
Change-Id: I619df0eb8b5f016aac54a0260eb941fd91a348aa
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
Kai Koehne
2013-04-30 10:02:59 +02:00
committed by hjk
parent 9728afadb0
commit 3aa0e50039

View File

@@ -2550,6 +2550,21 @@ BreakpointPathUsage GdbEngine::defaultEngineBreakpointPathUsage() const
// the source path isn't canonical
if (m_gdbVersion < 70300)
return BreakpointUseShortPath;
//don't set absolute breakpoints for remote targets
switch (startMode()) {
case AttachToRemoteServer:
case AttachToRemoteProcess:
case LoadRemoteCore:
case StartRemoteProcess:
case StartRemoteGdb:
case StartRemoteEngine:
return BreakpointUseShortPath;
default:
break;
}
return BreakpointUseFullPath;
}