diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2020-07-12 22:58:52 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-07-12 22:58:52 -0400 |
commit | 064d9cb9e765b0a064a2e442df0e7bcc79f98c18 (patch) | |
tree | 5a7903d08f40b9931b366355181734242656f245 /gdb/ada-tasks.c | |
parent | 5537ddd024adc7d1af6f9572983f77e9dd047fce (diff) | |
download | gdb-064d9cb9e765b0a064a2e442df0e7bcc79f98c18.zip gdb-064d9cb9e765b0a064a2e442df0e7bcc79f98c18.tar.gz gdb-064d9cb9e765b0a064a2e442df0e7bcc79f98c18.tar.bz2 |
gdb: remove TYPE_LOW_BOUND_UNDEFINED and TYPE_HIGH_BOUND_UNDEFINED
Remove the macros, use the getters of `struct dynamic_prop` instead.
gdb/ChangeLog:
* gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
to get the bound property's kind and check against
PROP_UNDEFINED.
Change-Id: I6a7641ac1aa3fa7fca0c21f00556f185f2e2d68c
Diffstat (limited to 'gdb/ada-tasks.c')
-rw-r--r-- | gdb/ada-tasks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-tasks.c b/gdb/ada-tasks.c index 7870a78..27b4587 100644 --- a/gdb/ada-tasks.c +++ b/gdb/ada-tasks.c @@ -896,8 +896,8 @@ ada_tasks_inferior_data_sniffer (struct ada_tasks_inferior_data *data) && eltype->code () == TYPE_CODE_PTR) idxtype = check_typedef (type->index_type ()); if (idxtype != NULL - && !TYPE_LOW_BOUND_UNDEFINED (idxtype) - && !TYPE_HIGH_BOUND_UNDEFINED (idxtype)) + && idxtype->bounds ()->low.kind () != PROP_UNDEFINED + && idxtype->bounds ()->high.kind () != PROP_UNDEFINED) { data->known_tasks_element = eltype; data->known_tasks_length = |