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 | 3b606f384df54adb8e70dd678cd9a4c9759e4122 (patch) | |
tree | 25ee94fcbb938ba8eae31ba258398335d32a9e18 /gdb/rust-lang.c | |
parent | 064d9cb9e765b0a064a2e442df0e7bcc79f98c18 (diff) | |
download | gdb-3b606f384df54adb8e70dd678cd9a4c9759e4122.zip gdb-3b606f384df54adb8e70dd678cd9a4c9759e4122.tar.gz gdb-3b606f384df54adb8e70dd678cd9a4c9759e4122.tar.bz2 |
gdb: remove TYPE_LOW_BOUND_KIND and TYPE_HIGH_BOUND_KIND
Remove the macros, use the getters of `struct dynamic_prop` instead.
gdb/ChangeLog:
* gdbtypes.h (TYPE_LOW_BOUND_KIND,
TYPE_HIGH_BOUND_KIND): Remove. Update all callers
to use dynamic_prop::kind.
Change-Id: Icb1fc761f675bfac934209f8102392504d905c44
Diffstat (limited to 'gdb/rust-lang.c')
-rw-r--r-- | gdb/rust-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c index 31126a2..cedb15f 100644 --- a/gdb/rust-lang.c +++ b/gdb/rust-lang.c @@ -813,8 +813,8 @@ rust_internal_print_type (struct type *type, const char *varstring, stream, show - 1, level, flags, false, podata); - if (TYPE_HIGH_BOUND_KIND (type->index_type ()) == PROP_LOCEXPR - || TYPE_HIGH_BOUND_KIND (type->index_type ()) == PROP_LOCLIST) + if (type->index_type ()->bounds ()->high.kind () == PROP_LOCEXPR + || type->index_type ()->bounds ()->high.kind () == PROP_LOCLIST) fprintf_filtered (stream, "; variable length"); else if (get_array_bounds (type, &low_bound, &high_bound)) fprintf_filtered (stream, "; %s", |