Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@efficios.com>
Subject: [PATCH 0/4] Fix bug in value_subscript when range's high bound is not known
Date: Mon, 23 Nov 2020 11:21:16 -0500	[thread overview]
Message-ID: <20201123162120.3778679-1-simon.marchi@efficios.com> (raw)

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


             reply	other threads:[~2020-11-23 16:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-23 16:21 Simon Marchi via Gdb-patches [this message]
2020-11-23 16:21 ` [PATCH 1/4] gdb: make discrete_position return optional Simon Marchi via Gdb-patches
2020-12-06  5:25   ` Joel Brobecker
2020-12-06  5:38   ` Joel Brobecker
2020-12-07 14:58     ` Simon Marchi via Gdb-patches
2020-12-08  3:06       ` Joel Brobecker
2020-12-08 11:41         ` Maciej W. Rozycki
2020-12-09 19:29           ` Simon Marchi via Gdb-patches
2020-12-09 19:53             ` Maciej W. Rozycki
2020-11-23 16:21 ` [PATCH 2/4] gdb: make get_discrete_bounds return bool Simon Marchi via Gdb-patches
2020-12-06  6:03   ` Joel Brobecker
2020-12-07 15:19     ` Simon Marchi via Gdb-patches
2020-11-23 16:21 ` [PATCH 3/4] gdb: split get_discrete_bounds in two Simon Marchi via Gdb-patches
2020-12-06  7:29   ` Joel Brobecker
2020-12-07 15:49     ` Simon Marchi via Gdb-patches
2020-11-23 16:21 ` [PATCH 4/4] gdb: fix value_subscript when array upper bound is not known Simon Marchi via Gdb-patches
2020-12-06  7:54   ` Joel Brobecker
2020-12-07 16:06     ` Simon Marchi via Gdb-patches
2020-12-08  3:14       ` Joel Brobecker
2020-12-09 18:50         ` Simon Marchi via Gdb-patches
2020-12-09 19:57     ` Simon Marchi via Gdb-patches

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201123162120.3778679-1-simon.marchi@efficios.com \
    --to=gdb-patches@sourceware.org \
    --cc=simon.marchi@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox