mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-05-25 19:58:06 +08:00
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
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user