* gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of

a ptype to reflect the setting of TARGET_PTR_BIT.  Set the
	TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
	* tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
	* printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
	it before printing out the hex shape of an address.
This commit is contained in:
Steve Chamberlain 1992-03-03 07:05:23 +00:00
parent bff1c97a66
commit 96743d3c30
5 changed files with 119 additions and 77 deletions

View file

@ -80,12 +80,13 @@ lookup_pointer_type (type)
TYPE_POINTER_TYPE (type) = ptype;
/* We assume the machine has only one representation for pointers! */
/* FIXME: This confuses host<->target data representations, and is a
poor assumption besides. */
TYPE_LENGTH (ptype) = sizeof (char *);
TYPE_LENGTH (ptype) = TARGET_PTR_BIT / TARGET_CHAR_BIT;
TYPE_CODE (ptype) = TYPE_CODE_PTR;
/* pointers are unsigned */
TYPE_FLAGS(ptype) |= TYPE_FLAG_UNSIGNED;
}
return (ptype);
}