forked from Imagelibrary/binutils-gdb
gdb: remove TYPE_HIGH_BOUND and TYPE_LOW_BOUND
Remove the macros, use the getters of `struct dynamic_prop` instead.
gdb/ChangeLog:
* gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
all callers to use type::range_bounds followed by
dynamic_prop::{low,high}.
Change-Id: I31beeed65d94d81ac4f999244a8b859e2ee961d1
This commit is contained in:
committed by
Simon Marchi
parent
8c2e4e0689
commit
5537ddd024
@@ -47,7 +47,7 @@ convert_array (compile_c_instance *context, struct type *type)
|
||||
if (TYPE_LOW_BOUND_KIND (range) != PROP_CONST)
|
||||
return context->plugin ().error (_("array type with non-constant"
|
||||
" lower bound is not supported"));
|
||||
if (TYPE_LOW_BOUND (range) != 0)
|
||||
if (range->bounds ()->low.const_val () != 0)
|
||||
return context->plugin ().error (_("cannot convert array type with "
|
||||
"non-zero lower bound to C"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user