forked from qt-creator/qt-creator
Debugger: Change UseFullPath setting to an enumeration.
Introducing EngineDefault such that CDB/LLDB can use full paths by default and gdb can use short paths. Reviewed-by: hjk
This commit is contained in:
@@ -97,7 +97,12 @@ QByteArray cdbAddBreakpointCommand(const BreakpointParameters &bpIn,
|
||||
str << '`';
|
||||
if (!bp.module.isEmpty())
|
||||
str << bp.module << '!';
|
||||
str << QDir::toNativeSeparators(bp.fileName) << ':' << bp.lineNumber << '`';
|
||||
if (bp.pathUsage == BreakpointUseShortPath) {
|
||||
str << QFileInfo(bp.fileName).fileName();
|
||||
} else {
|
||||
str << QDir::toNativeSeparators(bp.fileName);
|
||||
}
|
||||
str << ':' << bp.lineNumber << '`';
|
||||
break;
|
||||
case Watchpoint:
|
||||
str << "rw 1 " << hex << hexPrefixOn << bp.address << hexPrefixOff << dec;
|
||||
|
||||
Reference in New Issue
Block a user