diff options
author | hjk <hjk@theqtcompany.com> | 2016-05-23 13:49:47 +0200 |
---|---|---|
committer | hjk <hjk@theqtcompany.com> | 2016-05-24 11:50:45 +0000 |
commit | 98214c5a0fb2f5363ac92bf930d11b2fbb468902 (patch) | |
tree | bd5fc7cd67f89a385c2663ef31f4ebc4538f660d /share | |
parent | 6a74d8cad16d94593c6f86f833c5c31db39dfa60 (diff) | |
download | qt-creator-98214c5a0fb2f5363ac92bf930d11b2fbb468902.tar.gz |
Debugger: Robustify disabling of system pretty printers
There seems to be systems producing non-ASCII error messages when
running this in directories with non-ASCII characters. Since we
won't be able to workaround, silence the error to not disturb
further operation.
Change-Id: I527ce10c062273d2f4928f2a8fab79b704de067b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/debugger/gdbbridge.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/gdbbridge.py b/share/qtcreator/debugger/gdbbridge.py index 02029d700b..f228b76351 100644 --- a/share/qtcreator/debugger/gdbbridge.py +++ b/share/qtcreator/debugger/gdbbridge.py @@ -188,7 +188,11 @@ class PlainDumper: def importPlainDumpers(args): if args == "off": - gdb.execute("disable pretty-printer .* .*") + try: + gdb.execute("disable pretty-printer .* .*") + except: + # Might occur in non-ASCII directories + warn("COULD NOT DISABLE PRETTY PRINTERS") else: theDumper.importPlainDumpers() |