debugger: fix QObject property dumper by using workaround

As suggested by Tom T. in http://sourceware.org/bugzilla/show_bug.cgi?id=11912
(cherry picked from commit f52a88a074)

Conflicts:

	share/qtcreator/gdbmacros/dumper.py
This commit is contained in:
hjk
2010-08-17 16:32:59 +02:00
parent 7788e95ee9
commit 7aa677c4e5

View File

@@ -647,7 +647,8 @@ def call(value, func):
type = stripClassTag(str(value.type)) type = stripClassTag(str(value.type))
if type.find(":") >= 0: if type.find(":") >= 0:
type = "'" + type + "'" type = "'" + type + "'"
exp = "((%s*)%s)->%s" % (type, value.address, func) # 'class' is needed, see http://sourceware.org/bugzilla/show_bug.cgi?id=11912
exp = "((class %s*)%s)->%s" % (type, value.address, func)
#warn("CALL: %s" % exp) #warn("CALL: %s" % exp)
result = None result = None
try: try: