aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-tdep.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-12-09 13:52:03 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2020-12-09 15:31:44 -0500
commitbd1768de2174b4f22ccd7ea1c076e031c5835cce (patch)
tree6fb7d7ebcf8e94c7bdb77f9173a481c0a4d99178 /gdb/linux-tdep.c
parentf47d1c255d21d7425b8a45c7a20979e9cb553ed8 (diff)
downloadgdb-bd1768de2174b4f22ccd7ea1c076e031c5835cce.zip
gdb-bd1768de2174b4f22ccd7ea1c076e031c5835cce.tar.gz
gdb-bd1768de2174b4f22ccd7ea1c076e031c5835cce.tar.bz2
gdb: split get_discrete_bounds in two
get_discrete_bounds is not flexible for ranges (TYPE_CODE_RANGE), in the sense that it returns true (success) only if both bounds are present and constant values. This is a problem for code that only needs to know the low bound and fails unnecessarily if the high bound is unknown. Split the function in two, get_discrete_low_bound and get_discrete_high_bound, that both return an optional. Provide a new implementation of get_discrete_bounds based on the two others, so the callers don't have to be changed. gdb/ChangeLog: * gdbtypes.c (get_discrete_bounds): Implement with get_discrete_low_bound and get_discrete_high_bound. (get_discrete_low_bound): New. (get_discrete_high_bound): New. Change-Id: I986b5e9c0dd969800e3fb9546af9c827d52e80d0
Diffstat (limited to 'gdb/linux-tdep.c')
0 files changed, 0 insertions, 0 deletions