* gdbtypes.c (get_discrete_bounds): New function.
authorPer Bothner <per@bothner.com>
Thu, 5 Oct 1995 01:09:53 +0000 (01:09 +0000)
committerPer Bothner <per@bothner.com>
Thu, 5 Oct 1995 01:09:53 +0000 (01:09 +0000)
commit706bfe5a1c25b80f2af9c48477035cfe73987ae4
treece4a369a9f5beaa3c7a7909bd4708aec8a3b2340
parentc780e5dbafac580ef35286c4325ecf59015f12b1
* gdbtypes.c (get_discrete_bounds):  New function.
(force_to_range_type):  Use get_discrete_bounds.
* gdbtypes.h (get_discrete_bounds):  Add declaration.
* valarith.c (value_bit_index):  Generalize to use get_discrete_bounds.
* ch-valprint.c (chill_val_print):  Make (power)sets and bitstring
support use get_discrete_bounds and generally be more robust.
This fixes PR chill/8136.
gdb/ChangeLog
gdb/ch-valprint.c
gdb/gdbtypes.c
gdb/gdbtypes.h