forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/4.13' into master
Change-Id: I8b11dad770b37a7f6029ae818c9d92a24818e56d
This commit is contained in:
@@ -695,13 +695,15 @@ def qdumpHelper_std__string(d, value, charType, format):
|
|||||||
# GCC 9, QTCREATORBUG-22753
|
# GCC 9, QTCREATORBUG-22753
|
||||||
try:
|
try:
|
||||||
data = value["_M_dataplus"]["_M_p"].pointer()
|
data = value["_M_dataplus"]["_M_p"].pointer()
|
||||||
|
except:
|
||||||
|
data = value.extractPointer()
|
||||||
|
try:
|
||||||
size = int(value["_M_string_length"])
|
size = int(value["_M_string_length"])
|
||||||
d.putCharArrayHelper(data, size, charType, format)
|
d.putCharArrayHelper(data, size, charType, format)
|
||||||
return
|
return
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
data = value.extractPointer()
|
|
||||||
# We can't lookup the std::string::_Rep type without crashing LLDB,
|
# We can't lookup the std::string::_Rep type without crashing LLDB,
|
||||||
# so hard-code assumption on member position
|
# so hard-code assumption on member position
|
||||||
# struct { size_type _M_length, size_type _M_capacity, int _M_refcount; }
|
# struct { size_type _M_length, size_type _M_capacity, int _M_refcount; }
|
||||||
|
Reference in New Issue
Block a user