diff options
-rw-r--r-- | share/qtcreator/debugger/gdbbridge.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/gdbbridge.py b/share/qtcreator/debugger/gdbbridge.py index 117f5fcfdd..618c4113ee 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: |