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:
parent
8c2e4e0689
commit
5537ddd024
15 changed files with 58 additions and 53 deletions
|
@ -592,12 +592,12 @@ typy_range (PyObject *self, PyObject *args)
|
|||
{
|
||||
case TYPE_CODE_ARRAY:
|
||||
case TYPE_CODE_STRING:
|
||||
low = TYPE_LOW_BOUND (type->index_type ());
|
||||
high = TYPE_HIGH_BOUND (type->index_type ());
|
||||
low = type->index_type ()->bounds ()->low.const_val ();
|
||||
high = type->index_type ()->bounds ()->high.const_val ();
|
||||
break;
|
||||
case TYPE_CODE_RANGE:
|
||||
low = TYPE_LOW_BOUND (type);
|
||||
high = TYPE_HIGH_BOUND (type);
|
||||
low = type->bounds ()->low.const_val ();
|
||||
high = type->bounds ()->high.const_val ();;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue