aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/qtcreatorcdbext
diff options
context:
space:
mode:
authorTim Jenssen <tim.jenssen@qt.io>2021-01-07 15:20:42 +0100
committerTim Jenssen <tim.jenssen@qt.io>2021-01-07 14:23:46 +0000
commitb801a9339da38e502e3e8be4c7a185b3d43f8ba5 (patch)
tree91608363f3580c23d8ed635ea28285812eb83ed1 /src/libs/qtcreatorcdbext
parentf1268a9f868035b5ce97d9c8d494cd158ace71ed (diff)
parent19970878b87baaa1b22b7b821cda8ddb51a624d8 (diff)
Merge remote-tracking branch 'origin/4.14'
Diffstat (limited to 'src/libs/qtcreatorcdbext')
-rw-r--r--src/libs/qtcreatorcdbext/pycdbextmodule.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libs/qtcreatorcdbext/pycdbextmodule.cpp b/src/libs/qtcreatorcdbext/pycdbextmodule.cpp
index 49eed21616..6207667d4a 100644
--- a/src/libs/qtcreatorcdbext/pycdbextmodule.cpp
+++ b/src/libs/qtcreatorcdbext/pycdbextmodule.cpp
@@ -446,12 +446,10 @@ std::string collectOutput()
// Add a child to messages for every line.
while (std::getline(pyStdout, line)) {
// there are two kinds of messages we want to handle here:
- if (line.find("bridgemessage=") == 0) { // preformatted gdmi bridgemessages from warn()
+ if (line.find("bridgemessage=") == 0) // preformatted gdmi bridgemessages from warn()
ret << line << ',';
- } else { // and a line of "normal" python output
- replace(line, '"', '$'); // otherwise creators gdbmi parser would fail
- ret << "line=\"" << line << "\",";
- }
+ else // and a line of "normal" python output
+ ret << "line=\"" << gdbmiStringFormat(line) << "\",";
}
ret << "]," << results << "]";
results.clear();