forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.7'
Conflicts: src/plugins/debugger/debuggerruncontrol.cpp Change-Id: I72882df605bc3fc8a8d20118fd4e49207ac92664
This commit is contained in:
@@ -2603,9 +2603,13 @@ void GdbEngine::changeBreakpoint(Breakpoint bp)
|
||||
cmd.callback = [this, bp](const DebuggerResponse &r) { handleBreakLineNumber(r, bp); };
|
||||
} else if (data.command != response.command) {
|
||||
cmd.function = "-break-commands " + bpnr;
|
||||
foreach (const QString &command, data.command.split(QLatin1String("\n"))) {
|
||||
if (!command.isEmpty())
|
||||
for (QString command : data.command.split('\n')) {
|
||||
if (!command.isEmpty()) {
|
||||
// escape backslashes and quotes
|
||||
command.replace('\\', "\\\\");
|
||||
command.replace('"', "\\\"");
|
||||
cmd.function += " \"" + command + '"';
|
||||
}
|
||||
}
|
||||
cmd.callback = [this, bp](const DebuggerResponse &r) { handleBreakIgnore(r, bp); };
|
||||
} else if (!data.conditionsMatch(response.condition)) {
|
||||
|
||||
Reference in New Issue
Block a user