X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fxtensa-tdep.h;h=b99f8c9df2166876cebe5c4106ff22511db86544;hb=42cf184456fb1470835b6dccd536c2d74461e7b6;hp=986aa689f0cd30e2b7c311ab7e23c20f6b888787;hpb=f74f865e5030057deb8a6a56af4a9e003d82cdcd;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/xtensa-tdep.h b/gdb/xtensa-tdep.h index 986aa689f0..b99f8c9df2 100644 --- a/gdb/xtensa-tdep.h +++ b/gdb/xtensa-tdep.h @@ -1,6 +1,6 @@ /* Target-dependent code for the Xtensa port of GDB, the GNU debugger. - Copyright (C) 2003-2017 Free Software Foundation, Inc. + Copyright (C) 2003-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#ifndef XTENSA_TDEP_H +#define XTENSA_TDEP_H #include "arch/xtensa.h" @@ -103,7 +105,7 @@ typedef struct typedef struct { - char* name; /* Register name. */ + const char *name; /* Register name. */ int offset; /* Offset. */ xtensa_register_type_t type; /* Register type. */ xtensa_register_group_t group;/* Register group. */ @@ -130,7 +132,7 @@ typedef struct ct, bsz, sz, al, tnum, flg, cp, mas, fet, sto}, #define XTREG_END \ {0, 0, (xtensa_register_type_t) 0, (xtensa_register_group_t) 0, \ - 0, 0, 0, 0, -1, 0, 0, 0, 0, 0}, + 0, 0, 0, 0, (unsigned) -1, 0, 0, 0, 0, 0}, #define XTENSA_REGISTER_FLAGS_PRIVILEGED 0x0001 #define XTENSA_REGISTER_FLAGS_READABLE 0x0002 @@ -228,7 +230,7 @@ struct gdbarch_tdep #define XTENSA_GDBARCH_TDEP_INSTANTIATE(rmap,spillsz) \ { \ 0, /* target_flags */ \ - -1, /* spill_location */ \ + (unsigned) -1, /* spill_location */ \ (spillsz), /* spill_size */ \ 0, /* unused */ \ (XSHAL_ABI == XTHAL_ABI_CALL0 \ @@ -291,3 +293,4 @@ struct gdbarch_tdep data structure to their corresponding register in the AR register file (see xtensa-tdep.c). */ +#endif /* XTENSA_TDEP_H */