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:
Simon Marchi
2020-07-12 22:58:51 -04:00
committed by Simon Marchi
parent 8c2e4e0689
commit 5537ddd024
15 changed files with 58 additions and 53 deletions

View File

@@ -42,7 +42,7 @@ static void
adjust_type_signedness (struct type *type)
{
if (type != NULL && type->code () == TYPE_CODE_RANGE
&& TYPE_LOW_BOUND (type) >= 0)
&& type->bounds ()->low.const_val () >= 0)
TYPE_UNSIGNED (type) = 1;
}