forked from qt-creator/qt-creator
Debugger/GDB: Use short paths for breakpoints on UNIX.
Breakpoints by path are not hit if the path traverses symbolic links. Change-Id: I3ab5d1bead8333986444aec709c940840dfddbb4 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -2553,6 +2553,10 @@ BreakpointPathUsage GdbEngine::defaultEngineBreakpointPathUsage() const
|
||||
// the source path isn't canonical
|
||||
if (m_gdbVersion < 70300)
|
||||
return BreakpointUseShortPath;
|
||||
// Use short path for file systems with symbolic links. On Windows, main.cpp
|
||||
// is potentially ambiguous (ANGLE, DLL).
|
||||
if (startParameters().toolChainAbi.os() != ProjectExplorer::Abi::WindowsOS)
|
||||
return BreakpointUseShortPath;
|
||||
|
||||
//don't set absolute breakpoints for remote targets
|
||||
switch (startMode()) {
|
||||
|
||||
Reference in New Issue
Block a user