diff --git a/share/qtcreator/debugger/gdbbridge.py b/share/qtcreator/debugger/gdbbridge.py index 117f5fcfdd8..618c4113ee8 100644 --- a/share/qtcreator/debugger/gdbbridge.py +++ b/share/qtcreator/debugger/gdbbridge.py @@ -1002,7 +1002,12 @@ class Dumper(DumperBase): try: symbols = gdb.execute(cmd, to_string = True) except: - pass + # command syntax depends on gdb version - below is gdb 8+ + cmd = 'maint print msymbols -objfile "%s" -- %s' % (objfile.filename, tmppath) + try: + symbols = gdb.execute(cmd, to_string = True) + except: + pass ns = '' with open(tmppath) as f: for line in f: