Commit a8b215dc authored by Ulf Hermann's avatar Ulf Hermann Committed by hjk
Browse files

Debugger: Correctly identify derived classes from references

Previously the correctly gdb-identified dynamic types were overwritten
with the value's static type. This is probably because the dynamic type
doesn't include the "&" for "reference". That, however, can easily be
fixed by just appending "&". As we're only handling references there it
should be safe to do so.

Task-number: QTCREATORBUG-10888
Change-Id: I7310916ce662956e66491423ad26658c32c8776b
Reviewed-by: default avatarChristian Stenger <>
Reviewed-by: default avatarhjk <>
parent 69230984
......@@ -1253,7 +1253,7 @@ class Dumper(DumperBase):
# generic pointer." with MinGW's gcc 4.5 when it "identifies"
# a "QWidget &" as "void &" and with optimized out code.
self.putBetterType("%s &" % self.currentType)
except RuntimeError:
self.putValue("<optimized out reference>")
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