Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: gdb-patches@sourceware.org
Cc: Simon Marchi <simon.marchi@polymtl.ca>,
	Joel Brobecker <brobecker@adacore.com>
Subject: Re: GDB 8.2 release 2018-08-21 status update
Date: Thu, 23 Aug 2018 22:41:00 -0000	[thread overview]
Message-ID: <20180823154138.66be5572@pinnacle.lan> (raw)
In-Reply-To: <0e24ffbeb9706f75c53d3fdcfea3decb@polymtl.ca>

On Thu, 23 Aug 2018 14:36:54 -0400
Simon Marchi <simon.marchi@polymtl.ca> wrote:

> On 2018-08-21 13:51, Joel Brobecker wrote:
> >   * [KevinB] PR gdb/23021
> >     Setting breakpoints with -freorder-blocks-and-partition
> >     https://sourceware.org/bugzilla/show_bug.cgi?id=23021
> > 
> > 	Identified as needed in the previous release, but couldn't do it
> >         in time. We should be very close, now:
> >         [v3] 
> > https://sourceware.org/ml/gdb-patches/2018-08/msg00467.html
> > 
> >         I'm wondering how reasonable it's going to be to backport
> >         those changes onto the branch, though... Any thoughts on that?
> >         Kevin? Simon?  
> 
> The changeset does indeed look scary :).  But I think Kevin was careful 
> to keep the existing behaviour for contiguous blocks.
> 
> Patches 1 and 2 look harmless.
> 
> Patches 3 and 4 mostly added some branches for the contiguous and the 
> non-contiguous case, where the contiguous case keeps the former 
> behaviour.  If you have an executable with only contiguous blocks, it 
> *should* therefore work the same way as before.  If you have an 
> executable with non-contiguous blocks, well it would be broken with GDB 
> 8.1, so anything is an improvement.
> 
> Patch 5 changes BLOCK_START for BLOCK_ENTRY_PC, which is supposed to be 
> the same for contiguous blocks, so again no changes expected there.
> 
> I'm not sure about the impact of patch 6.

For contiguous blocks, there's no change in behavior for patch 6
either.

I.e. find_function_entry_range_from_pc provides the same answer as
find_pc_partial_function when invoked on a function occupying a
contiguous block.

> 
> Patch 7 modifies the block range data, which is only used in the 
> non-contiguous branches.  So again, no impact on existing 
> contiguous-only executables.

I agree with the rest of your analysis.

> So from my point of view, it would be fine to include it in 8.2.  I'm 
> just wondering though why this was considered as a blocker for 8.2 in 
> the first place.  It's not really a regression, it's more like a new 
> feature.  Was it to make sure we get the feature to users faster, before 
> the new gcc that emits code like this by default starts to spread too 
> much?

According to Thomas Koenig, from GCC bug 84550:

    With gdb 8.0.1, stepping through functions after breakpoints is
    often broken.  This makes it hard to debug gcc itself.

The non-contiguous address ranges patches _might_ make it easier for
gcc developers to debug gcc.

Kevin


  reply	other threads:[~2018-08-23 22:41 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-21 17:51 Joel Brobecker
2018-08-21 18:33 ` Kevin Buettner
2018-08-21 19:02 ` Simon Marchi
2018-08-21 20:17   ` Simon Marchi
2018-08-21 20:54     ` Joel Brobecker
2018-08-22 16:07       ` Simon Marchi
2018-08-22 17:38         ` Simon Marchi
2018-08-22 18:03         ` Stan Cox
2018-08-22 18:09           ` Simon Marchi
2018-08-21 20:55 ` Joel Brobecker
2018-08-21 21:29   ` Simon Marchi
2018-08-23 17:56     ` Pedro Alves
2018-08-24 18:01       ` Pedro Alves
2018-08-23 18:37 ` Simon Marchi
2018-08-23 22:41   ` Kevin Buettner [this message]
2018-08-24 18:35     ` Pedro Alves
2018-08-24 19:15       ` Simon Marchi
2018-08-24 19:52         ` Pedro Alves
2018-08-24  3:57 ` Kevin Buettner
2018-08-25  5:41   ` Kevin Buettner

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=20180823154138.66be5572@pinnacle.lan \
    --to=kevinb@redhat.com \
    --cc=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