diff options
Diffstat (limited to 'share/qtcreator/debugger')
-rw-r--r-- | share/qtcreator/debugger/lldbbridge.py | 2 | ||||
-rw-r--r-- | share/qtcreator/debugger/personaltypes.py | 9 | ||||
-rw-r--r-- | share/qtcreator/debugger/qttypes.py | 8 |
3 files changed, 8 insertions, 11 deletions
diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py index 800def2498e..9c85907f9a9 100644 --- a/share/qtcreator/debugger/lldbbridge.py +++ b/share/qtcreator/debugger/lldbbridge.py @@ -1649,7 +1649,7 @@ class Dumper(DumperBase): result += '{line="%s"' % lineNumber result += ',file="%s"' % fileName if 0 < lineNumber and lineNumber <= len(source): - result += ',data="%s"' % source[lineNumber - 1] + result += ',hexdata="%s"' % self.hexencode(source[lineNumber - 1]) result += ',hunk="%s"}' % hunk result += '{address="%s"' % loadAddr result += ',data="%s %s"' % (insn.GetMnemonic(self.target), diff --git a/share/qtcreator/debugger/personaltypes.py b/share/qtcreator/debugger/personaltypes.py index 6169ee912a4..b4d34db10c8 100644 --- a/share/qtcreator/debugger/personaltypes.py +++ b/share/qtcreator/debugger/personaltypes.py @@ -24,16 +24,15 @@ ############################################################################ # This is a place to add your own dumpers for testing purposes. -# Any contents here will be picked up by GDB and LLDB based -# debugging in Qt Creator automatically. This code is not used -# when debugging with CDB on Windows. +# Any contents here will be picked up by GDB, LLDB, and CDB based +# debugging in Qt Creator automatically. # NOTE: This file will get overwritten when updating Qt Creator. # # To add dumpers that don't get overwritten, copy this file here # to a safe location outside the Qt Creator installation and -# make this location known to Qt Creator using the Debugger / -# GDB / Dumper customization / Additional file setting. +# make this location known to Qt Creator using the Debugger > +# Locals & Expressions > Extra Debugging Helpers setting. # Example to display a simple type # template<typename U, typename V> struct MapNode diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 3bcd9afb776..221d28361db 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -75,10 +75,7 @@ def qdump__QArrayData(d, value): d.check(alloc == 0 or (0 <= size and size <= alloc and alloc <= 100000000)) d.putValue(d.readMemory(data, size), 'latin1') d.putNumChild(1) - if d.isExpanded(): - with Children(d): - d.putIntItem('size', size) - d.putIntItem('alloc', alloc) + d.putPlainChildren(value) def qdump__QByteArrayData(d, value): qdump__QArrayData(d, value) @@ -1369,8 +1366,9 @@ def qdump__QStringData(d, value): (ref, size, alloc, pad, offset) = value.split('III@p') elided, shown = d.computeLimit(size, d.displayStringLimit) data = d.readMemory(value.address() + offset, shown * 2) - d.putNumChild(0) d.putValue(data, 'utf16', elided=elided) + d.putNumChild(1) + d.putPlainChildren(value) def qdump__QHashedString(d, value): qdump__QString(d, value) |