aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator
diff options
context:
space:
mode:
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>2020-09-03 22:36:54 +0300
committerOrgad Shaneh <orgads@gmail.com>2020-09-04 14:51:13 +0000
commit9a7535d9e9aba9aa1a8a2a87db8d8c5054903b22 (patch)
treed74b399a3ddbc9b00dc471f7b4bbb1da9ed80b25 /share/qtcreator
parent3b415f5ebd4936b9fdf2d2b211ee368d7f943fa7 (diff)
Debugger: Support C structs in dumpers
The lookup for qdump function was done by "struct Foo" instead of just "Foo". Change-Id: I325d00910a0c13c5e67692737033531e18392247 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'share/qtcreator')
-rw-r--r--share/qtcreator/debugger/dumper.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py
index 42dd8e9ba8..3cca1f1f56 100644
--- a/share/qtcreator/debugger/dumper.py
+++ b/share/qtcreator/debugger/dumper.py
@@ -1187,6 +1187,10 @@ class DumperBase():
nsStrippedType = self.stripNamespaceFromType(typeName)\
.replace('::', '__')
+ # Strip leading 'struct' for C structs
+ if nsStrippedType.startswith('struct '):
+ nsStrippedType = nsStrippedType[7:]
+
#DumperBase.warn('STRIPPED: %s' % nsStrippedType)
# The following block is only needed for D.
if nsStrippedType.startswith('_A'):