[PATCH 0/4] Fix bug in value_subscript when range's high bound is not known
Simon Marchi
simon.marchi@efficios.com
Mon Nov 23 16:21:16 GMT 2020
This series fixes PR26875 and PR26901. Since this is a regression
introduced in GDB 10, I would consider this for the GDB 10 stable
branch.
Simon Marchi (4):
gdb: make discrete_position return optional
gdb: make get_discrete_bounds return bool
gdb: split get_discrete_bounds in two
gdb: fix value_subscript when array upper bound is not known
gdb/ada-lang.c | 33 +--
gdb/ada-valprint.c | 2 +-
gdb/c-lang.c | 4 +-
gdb/eval.c | 4 +-
gdb/f-array-walker.h | 4 +-
gdb/f-lang.c | 2 +-
gdb/gdbtypes.c | 225 ++++++++++++------
gdb/gdbtypes.h | 20 +-
gdb/m2-typeprint.c | 4 +-
gdb/m2-valprint.c | 6 +-
gdb/p-valprint.c | 3 +-
.../gdb.base/flexible-array-member.c | 70 ++++++
.../gdb.base/flexible-array-member.exp | 66 +++++
gdb/valarith.c | 24 +-
gdb/valops.c | 4 +-
15 files changed, 356 insertions(+), 115 deletions(-)
create mode 100644 gdb/testsuite/gdb.base/flexible-array-member.c
create mode 100644 gdb/testsuite/gdb.base/flexible-array-member.exp
--
2.29.2
More information about the Gdb-patches
mailing list