PR exp/12117
	* gdbtypes.c (check_typedef): Clean up function comment.
	Keep track of instance flags as we strip typedefs and create a new
	type to preserve them if necessary.
	* gdbtypes.h (type) <instance_flags>: Extend the comment.

gdb/testsuite/
	PR exp/12117
	* gdb.cp/ptype-cv-cp.cc: New file.
	* gdb.cp/ptype-cv-cp.exp: New file.
This commit is contained in:
Jan Kratochvil
2010-10-15 17:48:48 +00:00
parent 3917d5d5ca
commit 92163a10dc
6 changed files with 159 additions and 28 deletions

View File

@@ -623,7 +623,14 @@ struct type
struct type *chain;
/* Flags specific to this instance of the type, indicating where
on the ring we are. */
on the ring we are.
For TYPE_CODE_TYPEDEF the flags of the typedef type should be binary
or-ed with the target type, with a special case for address class and
space class. For example if this typedef does not specify any new
qualifiers, TYPE_INSTANCE_FLAGS is 0 and the instance flags are
completely inherited from the target type. No qualifiers can be cleared
by the typedef. See also check_typedef. */
int instance_flags;
/* Length of storage for a value of this type. This is what