diff options
author | Steve Chamberlain <sac@cygnus> | 1992-03-03 07:05:23 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1992-03-03 07:05:23 +0000 |
commit | 96743d3c3033705c391308b45e61686b10dba1d5 (patch) | |
tree | 0849cb4d8597111f54dcb0f977e2350704447d9d /gdb/tm-h8300.h | |
parent | bff1c97a6634f6a8dfde48f22bfbd9b85b2e7170 (diff) | |
download | gdb-96743d3c3033705c391308b45e61686b10dba1d5.zip gdb-96743d3c3033705c391308b45e61686b10dba1d5.tar.gz gdb-96743d3c3033705c391308b45e61686b10dba1d5.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/tm-h8300.h')
-rw-r--r-- | gdb/tm-h8300.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/tm-h8300.h b/gdb/tm-h8300.h index 330576e..12e5b05 100644 --- a/gdb/tm-h8300.h +++ b/gdb/tm-h8300.h @@ -44,11 +44,12 @@ extern void init_extra_frame_info (); #define IEEE_FLOAT - /* Define the bit, byte, and word ordering of the machine. */ #define TARGET_BYTE_ORDER BIG_ENDIAN #undef TARGET_INT_BIT #define TARGET_INT_BIT 16 +#undef TARGET_PTR_BIT +#define TARGET_PTR_BIT 16 /* Offset from address of function to start of its code. @@ -304,3 +305,8 @@ UNSIGNED_SHORT(read_memory_integer (read_register (SP_REGNUM), 2)) #define NAMES_HAVE_UNDERSCORE typedef unsigned short INSN_WORD; + +#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffff) +#define ADDR_BITS_SET(addr) (((addr))) + +#define read_memory_short(x) (read_memory_integer(x,2) & 0xffff) |