diff options
author | Ulf Hermann <ulf.hermann@digia.com> | 2013-11-22 17:46:59 +0100 |
---|---|---|
committer | hjk <hjk121@nokiamail.com> | 2013-11-27 13:41:44 +0100 |
commit | a8b215dcf135357b4bbf3239ef8f824f53991c35 (patch) | |
tree | e0da6f555d00d1fcb9e5578de2254c828b7664b2 /share | |
parent | 692309849f85f5bae7b2255138d3f8c875dbce6d (diff) | |
download | qt-creator-a8b215dcf135357b4bbf3239ef8f824f53991c35.tar.gz |
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: Christian Stenger <christian.stenger@digia.com>
Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'share')
-rw-r--r-- | share/qtcreator/debugger/gdbbridge.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/gdbbridge.py b/share/qtcreator/debugger/gdbbridge.py index 6de1c2891d..aadd22e43b 100644 --- a/share/qtcreator/debugger/gdbbridge.py +++ b/share/qtcreator/debugger/gdbbridge.py @@ -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.putItem(value.cast(type.target().unqualified())) - self.putBetterType(typeName) + self.putBetterType("%s &" % self.currentType) return except RuntimeError: self.putValue("<optimized out reference>") |