Commit 43b83108 authored by hjk's avatar hjk

Debugger: Disable dumper for QVariants with user defined types for LLDB

The type info is not directly accessible to the debugger. The workaround
used so far generally works for initialized data, but can force loading
all debug information otherwise. The behavior is exceptionally bad
for LLDB 3.7 with GCC 5.x/C++14 due DW_TAG_base_type 'auto' encoded with
DW_ATE = 0x0, bit_size = 0 produced by GCC and not understood by LLDB.

Change-Id: I2b28b8a6aa15751c8e797bcbf501b81622680596
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent d432b144
......@@ -2197,6 +2197,13 @@ def qdump__QVariant(d, value):
return innert
# Do not handle user types. The workaround below works, sometimes
# for inialized data, but can force loading all debug information
# and trigger parse errors "error: need to add support for
# DW_TAG_base_type 'auto' encoded with DW_ATE = 0x0, bit_size = 0"
# (LLDB 3.7/Linux)
if d.isLldb and platform.system() == "Linux":
return None
# User types.
d_ptr = value["d"]
......
Markdown is supported
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