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:
hjk
2012-08-20 18:47:51 +02:00
parent 5064933944
commit 12dd0587fc
6 changed files with 304 additions and 569 deletions

View File

@@ -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());