From: Simon Marchi <simark@simark.ca>
To: Tom de Vries <tdevries@suse.de>,
Simon Marchi <simon.marchi@efficios.com>,
gdb-patches@sourceware.org
Cc: Jakub Jelinek <jakub@redhat.com>
Subject: Re: [PATCH] cc-with-tweaks: show dwz stderr and check exit code
Date: Fri, 10 May 2019 20:27:00 -0000 [thread overview]
Message-ID: <198e32ec-ece0-dc5b-8c8d-8b466f31addf@simark.ca> (raw)
In-Reply-To: <b5de0450-2492-af75-a7fc-99f42533dc54@suse.de>
On 2019-05-10 3:49 p.m., Tom de Vries wrote:
> The point I was trying to make, is that in a test-case there may be
> dwarf related to the test-case, and other, run-of-the-mill dwarf that is
> not at all related to the feature being tested, and when dwz has changed
> the executable, there's no way of knowing which of the two, or both has
> been affected. So, testing a test-case in combination with dwz, and
> seeing that the dwarf has been changed by dwz, does not guarantee you
> that the dwarf related to the feature being tested has in fact been changed.
Indeed.
>> I have included your suggestion in the patch below and made a few adjustments.
>>
>> By the way, do you have a way to reproduce the case where dwz doesn't optimize anything
>> in single file mode? Even with a file with just an empty main, dwz manages to do some
>> optimization.
>>
>
> I guess if you make a start.c with an empty _start function and compile
> with -stdlib (so, the start testcase in the dwz testsuite), and then
> furhter prune down the generated .s file, you'll end up with triggering
> that warning.
Ok, that's a bit further than I am willing to go right now to test the script :).
>> Another question: in multifile mode, we check if the output dwz file exists. Should we also
>> check that the original file now contains a .gnu_debugaltlink section? If dwz succeeded to
>> generated the external dwz file, but failed to modify the original executable, we could also
>> end up running a test with a non-dwzified executable.
>>
>
> Agreed, we could do that, but I haven't seen any problems with dwz
> related to that, so I'm not sure it's worth the churn atm.
Ok.
> LGTM.
Thanks for all the comments, I am pushing the patch.
Simon
prev parent reply other threads:[~2019-05-10 20:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-08 16:00 Simon Marchi
2019-05-09 11:25 ` Tom de Vries
2019-05-09 15:16 ` Simon Marchi
2019-05-10 9:03 ` Tom de Vries
2019-05-10 16:05 ` Simon Marchi
2019-05-10 19:49 ` Tom de Vries
2019-05-10 20:27 ` Simon Marchi [this message]
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=198e32ec-ece0-dc5b-8c8d-8b466f31addf@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=jakub@redhat.com \
--cc=simon.marchi@efficios.com \
--cc=tdevries@suse.de \
/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