diff options
author | Doug Evans <dje@google.com> | 2016-03-15 12:57:06 -0700 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2016-03-15 12:57:06 -0700 |
commit | 54157a25aa28ba78e1da1dfa06e6c988d75e88f1 (patch) | |
tree | d8fdb67bace2dca9634c5a3dabf223dcedd5cd0b /gdb/valprint.c | |
parent | 73b4f516a037e5fd2e90a3555c59ed42c9578e48 (diff) | |
download | binutils-gdb-54157a25aa28ba78e1da1dfa06e6c988d75e88f1.tar.gz |
Use int instead of LONGEST in tdesc_type sizes.
gdb/ChangeLog:
* target-descriptions.c (struct tdesc_type) <u.u.size>: Change type
from LONGEST to int.
(struct tdesc_type) <u.f.size>: Ditto.
(tdesc_set_struct_size): Change type of "size" arg from LONGEST
to int. Add assertion size > 0.
(tdesc_create_flags): Ditto.
* target-descriptions.h (tdesc_set_struct_size): Update.
(tdesc_create_flags): Update.
* xml-tdesc.c (MAX_FIELD_SIZE, MAX_FIELD_BITSIZE): New macros.
(MAX_VECTOR_SIZE): New macro.
(tdesc_start_struct): Catch conversion errors from LONGEST to int.
(tdesc_start_flags, tdesc_start_field, tdesc_start_vector): Ditto.
Diffstat (limited to 'gdb/valprint.c')
0 files changed, 0 insertions, 0 deletions