Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: gdb-patches@sourceware.org
Subject: Re: GDB 10.2 release (respin) -- 2021-01-31 Update
Date: Wed, 3 Feb 2021 09:50:56 +0400	[thread overview]
Message-ID: <20210203055056.GA2717@adacore.com> (raw)
In-Reply-To: <a4937c45-23ee-ed08-3e3a-c8b206a75b2a@polymtl.ca>

> > Simon also requested we consider:
> > 
> >   * [SimonM] <PR symtab/26813>
> >     DW_FORM_rnglistx and DW_FORM_loclistx not fully supported
> >     https://sourceware.org/bugzilla/show_bug.cgi?id=26813
> > 
> >     Simon posted a patch series on Jan 20th:
> >     [PATCH 00/13] DWARF 5 rnglists & loclists fixes (PR 26813)
> >     https://sourceware.org/pipermail/gdb-patches/2021-January/175221.html
> 
> This is now pushed on master.  Do I have your OK to backport it?  My
> argument for backporting it is that support for processing these DWARF5
> attributes was new in GDB 10, but GDB chokes on any non-trivial use of
> them (like when there are two compile units using rnglists).
> 
> Not all patches are tagged with PR 26813 (because they are
> cleanups/refactor), but the important ones, that contain the actual
> fixes, do have it.  Is that ok for the release branch?

I don't know if I'll be able to provide a well educated answer,
but here are some thoughts and questions.

Generally speaking, anything that touches purely on rnglist
seems OK to backport because I understand this support is entirely
new. I'm a little less sure about the changes to liclist support,
though. Is there something I don't know that puts the changes to
loclist handling in the same category as the rnglist changes?

Is it possible to skip some patches that are not strictly necessary,
and if yes, would that actually be a good idea?

With that in mind, my best thoughts on the matter so far:

  [PATCH 01/13] gdb/dwarf: change read_loclist_index complaints into errors

        Although unnecessary, I think this one is fine, and perhaps
        even desirable to avoid some weird behavior in GDB...

  [PATCH 02/13] gdb/dwarf: fix bound check in read_rnglist_index

        OK for gdb-10-branch

  [PATCH 03/13] gdb/dwarf: add missing bound check to read_loclist_index

        Seems straightforward and adds safety; OK for gdb-10-branch.

  [PATCH 04/13] gdb/dwarf: remove unnecessary check in read_{rng,loc}list_index

        Maybe drop this patch, on the basis that this is just
        a cleanup that should, in fine, be a no-op in practice.

  [PATCH 05/13] gdb/dwarf: few fixes for handling DW_FORM_{rng,loc}listx

        After verification in the DWARF 5 standard that those are
        unsigned ULEBs, this one looks good to me for gdb-10-branch.

  [PATCH 06/13] gdb/dwarf: read correct rnglist/loclist header in read_{rng, loc}list_index

        I will need to trust you on that one, as I think I would need
        to delve more deeply into DWARF 5, and I'm lacking the time
        (at least until this weekend).

  [PATCH 07/13] gdb/dwarf: read DW_AT_ranges value as unsigned in partial_die_info::read

        A little scarier for me, but the justification that we are
        already doing this in dwarf2_get_pc_bounds is convincing.
        OK for gdb-10-branch.

  [PATCH 08/13] gdb/testsuite: add .debug_rnglists tests
  [PATCH 09/13] gdb/testsuite: DWARF assembler: add context parameters to _location
  [PATCH 10/13] gdb/testsuite: add .debug_loclists tests

        No problem for me.

  [PATCH 11/13] gdb/dwarf: split dwarf2_cu::ranges_base in two

        Do we need this? Looks like you are saying that this is
        an enhancement for a case that is unlikely to happen
        in practice?

  [PATCH 12/13] gdb/dwarf: make read_{loc, rng}list_index return sect_offset

        OK for gdb-10-branch, with perhaps a question regarding
        the gains-vs-risks ratio?

  [PATCH 13/13] gdb/testsuite: add test for .debug_{rng, loc}lists section without offset array

        No problem for me.

-- 
Joel

  reply	other threads:[~2021-02-03  5:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31  6:45 Joel Brobecker
2021-02-02 16:05 ` Simon Marchi via Gdb-patches
2021-02-03  5:50   ` Joel Brobecker [this message]
2021-02-03 15:48     ` Simon Marchi via Gdb-patches
2021-02-03 19:17       ` Simon Marchi via Gdb-patches
2021-02-04 10:30         ` Joel Brobecker

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=20210203055056.GA2717@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simon.marchi@polymtl.ca \
    /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