]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: add type::bounds / type::set_bounds
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jul 2020 02:58:50 +0000 (22:58 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 13 Jul 2020 02:58:50 +0000 (22:58 -0400)
commitc4dfcb3638cbdb33589e3789df45d76178b333bf
treec44705cd72d8c10eb1629f14abaa5e858de041a3
parent07716b63cb03c5489d243a48fef73930206d348f
gdb: add type::bounds / type::set_bounds

Add the `bounds` and `set_bounds` methods on `struct type`, in order to
remove the `TYPE_RANGE_DATA` macro.  In this patch, the
`TYPE_RANGE_DATA` macro is changed to use `type::bounds`, so all the
call sites that are used to set a range type's bounds are changed to use
`type::set_bounds`.  The next patch will remove `TYPE_RANGE_DATA`
completely.

gdb/ChangeLog:

* gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
(TYPE_RANGE_DATA): Use type::bounds.  Change all uses that
are used to set the range type's bounds to use set_bounds.

Change-Id: I62e15506239b98404e62bbea8120db184ed87847
gdb/ChangeLog
gdb/gdbtypes.c
gdb/gdbtypes.h
gdb/mdebugread.c