forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user