forked from qt-creator/qt-creator
debugger: fix use of multi-line breakpoint commands.
A (slightly customized) textedit is more appropriate than a line edit. Change-Id: I53bd8a6a623c670579b0633359e5722ee8ceba3e Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -3177,7 +3177,7 @@ void GdbEngine::changeBreakpoint(BreakpointModelId id)
|
||||
}
|
||||
if (data.command != response.command) {
|
||||
QByteArray breakCommand = "-break-commands " + bpnr;
|
||||
foreach (const QString &command, data.command.split(QLatin1String("\\n"))) {
|
||||
foreach (const QString &command, data.command.split(QLatin1String("\n"))) {
|
||||
if (!command.isEmpty()) {
|
||||
breakCommand.append(" \"");
|
||||
breakCommand.append(command.toLatin1());
|
||||
|
||||
Reference in New Issue
Block a user