diff options
author | Tom Tromey <tromey@adacore.com> | 2022-03-10 09:23:45 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-14 06:58:12 -0600 |
commit | 79a0742380b5304c734ce6f4359d437325cc7121 (patch) | |
tree | e3184cf4db3b81553d449cd4c4dc100633b80348 /gdb/infrun.c | |
parent | bab22d0640914384d467e09c3e796585fd08e7c6 (diff) | |
download | gdb-79a0742380b5304c734ce6f4359d437325cc7121.zip gdb-79a0742380b5304c734ce6f4359d437325cc7121.tar.gz gdb-79a0742380b5304c734ce6f4359d437325cc7121.tar.bz2 |
Correctly print subrange types in generic_value_print
I noticed that generic_value_print assumes that a subrange type is
always a subrange of an integer type. However, this isn't necessarily
the case. In Ada, for example, one has subranges of character and
enumeration types.
This code isn't often exercised, I think, because languages with real
subrange types tend to implement their own printers. However, it
still seemed worth fixing.
Diffstat (limited to 'gdb/infrun.c')
0 files changed, 0 insertions, 0 deletions