diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2020-07-12 22:58:51 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2020-07-12 22:58:51 -0400 |
commit | 599088e3ffa13edcccc68b6d7a39e7488123004a (patch) | |
tree | f8e0b4d1c6fe7bf9694d319c9d22fc6e4d631f58 /gdb/ada-lang.c | |
parent | c4dfcb3638cbdb33589e3789df45d76178b333bf (diff) | |
download | gdb-599088e3ffa13edcccc68b6d7a39e7488123004a.zip gdb-599088e3ffa13edcccc68b6d7a39e7488123004a.tar.gz gdb-599088e3ffa13edcccc68b6d7a39e7488123004a.tar.bz2 |
gdb: remove TYPE_RANGE_DATA macro
Remove it in favor of using type::bounds directly.
gdb/ChangeLog:
* gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
the type::bounds method directly.
Change-Id: Id4fab22af0a94cbf505f78b01b3ee5b3d682fba2
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index cbcceba..88ab7dd 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -2250,7 +2250,7 @@ has_negatives (struct type *type) case TYPE_CODE_INT: return !TYPE_UNSIGNED (type); case TYPE_CODE_RANGE: - return TYPE_LOW_BOUND (type) - TYPE_RANGE_DATA (type)->bias < 0; + return TYPE_LOW_BOUND (type) - type->bounds ()->bias < 0; } } |