Debugger: Fix Gdb CLI dumper output

Patch from hunk #2 in the report, hunk #1 was handled by 76260f8038.

Fixes: QTCREATORBUG-28659
Change-Id: I674b742869f8b834d039fbbfc599a3261d76b054
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2023-06-21 13:53:04 +02:00
parent 80de04d21c
commit 1e7f68e296
+4 -3
View File
@@ -1509,9 +1509,10 @@ class CliDumper(Dumper):
self.setupDumpers({})
def put(self, line):
if self.output.endswith('\n'):
self.output = self.output[0:-1]
self.output += line
if self.output:
if self.output[-1].endswith('\n'):
self.output[-1] = self.output[-1][0:-1]
self.output.append(line)
def putNumChild(self, numchild):
pass