Dumper: raise exception in gdbbridge callHelper on Windows

Gdb from MinGW 7.3.0 and 5.3.0 crashes on Windows when we try to
evaluate expressions that result in a function call. At least prevent
evaluating such expressions from within the dumper.

Task-number: QTCREATORBUG-23477
Change-Id: Ic14148a43b95aa1b52c1d4488958fa66eccdc0b5
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
David Schulz
2020-03-03 11:11:50 +01:00
parent efa11e690b
commit df2efd7df6
2 changed files with 10 additions and 5 deletions
+2
View File
@@ -744,6 +744,8 @@ class Dumper(DumperBase):
return None
def callHelper(self, rettype, value, function, args):
if self.isWindowsTarget():
raise Exception("gdb crashes when calling functions on Windows")
# args is a tuple.
arg = ''
for i in range(len(args)):