gdb: Add builtin types for 24 bit integers.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 13 Jul 2018 16:08:31 +0000 (18:08 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 8 Sep 2018 11:21:30 +0000 (13:21 +0200)
Add int24 and uint24.  These are used by the upcoming S12Z target, but will be
needed for any arch which features 24 bit registers.

* gdb/gdbtypes.h (struct builtin_type): New members builtin_int24
  and builtin_uint24;
* gdb/gdbtypes.c: Initialize them.
* gdb/doc/gdb.texinfo (Predefined Target Types): Mention types int24 and uint24.

gdb/doc/gdb.texinfo
gdb/gdbtypes.c
gdb/gdbtypes.h

index f2d1155b4db96a214a9d9f643379cb7853efebc5..8ebbe5fecb606e8b07bb9ddf2bac05683071ba04 100644 (file)
@@ -42389,6 +42389,7 @@ Boolean type, occupying a single bit.
 
 @item int8
 @itemx int16
+@itemx int24
 @itemx int32
 @itemx int64
 @itemx int128
@@ -42396,6 +42397,7 @@ Signed integer types holding the specified number of bits.
 
 @item uint8
 @itemx uint16
+@itemx uint24
 @itemx uint32
 @itemx uint64
 @itemx uint128
index 65b1211ec492a062b2efea766c7e7905d79e7ef6..05bf7b1134eace8ced34e8ea107ecbd7720397d7 100644 (file)
@@ -5402,6 +5402,10 @@ gdbtypes_post_init (struct gdbarch *gdbarch)
     = arch_integer_type (gdbarch, 16, 0, "int16_t");
   builtin_type->builtin_uint16
     = arch_integer_type (gdbarch, 16, 1, "uint16_t");
+  builtin_type->builtin_int24
+    = arch_integer_type (gdbarch, 24, 0, "int24_t");
+  builtin_type->builtin_uint24
+    = arch_integer_type (gdbarch, 24, 1, "uint24_t");
   builtin_type->builtin_int32
     = arch_integer_type (gdbarch, 32, 0, "int32_t");
   builtin_type->builtin_uint32
index 14059ab3dc55e3cbc96333168dbb4de0756e8a6e..eb7c365b71d03dd57105fbf95043ca8fd84e6b5e 100644 (file)
@@ -1611,6 +1611,8 @@ struct builtin_type
   struct type *builtin_uint8;
   struct type *builtin_int16;
   struct type *builtin_uint16;
+  struct type *builtin_int24;
+  struct type *builtin_uint24;
   struct type *builtin_int32;
   struct type *builtin_uint32;
   struct type *builtin_int64;
This page took 0.049879 seconds and 4 git commands to generate.