Commit f8afa89b authored by Christian Stenger's avatar Christian Stenger Committed by hjk

Tests: Fix QThread dumper for old gdb (~7.4)

Change-Id: Ifbaf8f326744e9e271b407d8650ffcc47b890889
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent cd507af4
...@@ -855,7 +855,9 @@ class Dumper(DumperBase): ...@@ -855,7 +855,9 @@ class Dumper(DumperBase):
pass pass
# Older GDB ~7.4 # Older GDB ~7.4
try: try:
return gdb.parse_and_eval(symbolName) address = gdb.parse_and_eval("&'%s'" % symbolName)
type = gdb.lookup_type(self.qtNamespace() + "QMetaObject")
return self.createPointerValue(address, type)
except: except:
return 0 return 0
......
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