Bug 10660 - the result of a cast has the wrong type
Summary: the result of a cast has the wrong type
Status: UNCONFIRMED
Alias: None
Product: gdb
Classification: Unclassified
Component: exp (show other bugs)
Version: 6.8
: P2 normal
Target Milestone: 6.8
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-18 19:20 UTC by Tom Tromey
Modified: 2009-09-18 20:01 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Tromey 2009-09-18 19:20:28 UTC
value_cast yields a result whose type is the result of calling
check_typedef on the requested type.  This means that casting will
strip typedefs.

This yields the wrong answer for cases where the type name matters,
namely python-based pretty-printing, and printing of wchar_t.