Commit 9e16554e authored by hjk's avatar hjk
Browse files

Debugger: Be a bit more robust with LLDB disassembler

LLDB 3.8 on Linux claims non-existent files to be the source of

Change-Id: I45a47cf5e7faad7ccd6dbb9879c8328fc2496b95
Reviewed-by: default avatarChristian Stenger <>
parent 0983c7cc
......@@ -1714,9 +1714,16 @@ class Dumper(DumperBase):
hunks[key] = hunk
source = sources.get(fileName, None)
if source is None:
with open(fileName, 'r') as f:
source =
sources[fileName] = source
with open(fileName, 'r') as f:
source =
sources[fileName] = source
except IOError as error:
# With lldb-3.8 files like /data/dev/creator-3.6/tests/
# auto/debugger/qt_tst_dumpers_StdVector_bfNWZa/main.cpp
# with non-existent directories appear.
warn("FILE: %s ERROR: %s" % (fileName, error))
source = ""
result += '{line="%s"' % lineNumber
result += ',file="%s"' % fileName
if 0 < lineNumber and lineNumber <= len(source):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment