Remove 'varsize-limit'

This makes the Ada-specific "varsize-limit" a synonym for
"max-value-size", and removes the Ada-specific checks of the limit.

I am not certain of the history here, but it seems to me that this
code is fully obsolete now.  And, removing this makes it possible to
index large Ada arrays without triggering an error.  A new test case
is included to demonstrate this.
This commit is contained in:
Tom Tromey
2021-09-13 12:53:05 -06:00
parent 3e44c3049f
commit acbf4a58ef
7 changed files with 33 additions and 63 deletions

View File

@@ -149,8 +149,6 @@ struct ada_task_info
int base_cpu;
};
extern void ada_ensure_varsize_limit (const struct type *type);
extern int ada_get_field_index (const struct type *type,
const char *field_name,
int maybe_missing);