mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
* 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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user