From: Philippe Waroquiers <philippe.waroquiers@skynet.be>
To: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFAv2] Ensure 'exec-file has changed' check has priority over 'exec-file-mismatch' check
Date: Sun, 21 Jun 2020 13:30:04 +0200 [thread overview]
Message-ID: <013e37e14e361f8111eb7d2483429fa7328492c1.camel@skynet.be> (raw)
In-Reply-To: <fe125832-bb0b-969c-5267-3e05f2c50c14@redhat.com>
On Sat, 2020-06-20 at 17:25 +0100, Pedro Alves wrote:
> On 6/4/20 9:42 PM, Philippe Waroquiers via Gdb-patches wrote:
> > This is version 2. Compared to first version:
> > rebased to last master
> > removed a comment duplicated by error
> > 'git add-ed' the attach3.c file I forgot.
> >
> > Following the implementation of exec-file-mismatch based on build-id,
> > an attach to a process that runs a modified exec-file was triggering
> > the exec-file-mismatch handling, giving a warning such as:
> > warning: Mismatch between current exec-file /bd/home/philippe/gdb/git/build_termours/gdb/testsuite/outputs/gdb.base/attach/attach
> > and automatically determined exec-file /bd/home/philippe/gdb/git/build_termours/gdb/testsuite/outputs/gdb.base/attach/attach
> > exec-file-mismatch handling is currently "ask"
> > as the build-ids differ when an exec-file is recompiled.
>
> I wonder whether the warning should mention Build IDs, like
>
> - warning: Mismatch between ...
> + warning: Build ID mismatch between ...
Effectively, it might be more precise for the user to explain how
the mismatch was detected. And if ever we add other ways to
detect a mismatch, we then better give different warnings.
Now, maybe many users will not know what is a build ID,
and the more cryptic message might confuse them.
If mentioning build ID is deemed better, I can do the change.
>
...
> So let's go with what you have. Some comments on the testcase below.
> But otherwise, with those addressed, please go ahead and push.
Thanks for the review, pushed after addressing the comments.
Philippe
next prev parent reply other threads:[~2020-06-21 11:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-04 20:42 Philippe Waroquiers
2020-06-20 10:28 ` PING " Philippe Waroquiers
2020-06-20 16:25 ` Pedro Alves
2020-06-21 11:30 ` Philippe Waroquiers [this message]
2020-06-21 11:42 ` Simon Marchi
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=013e37e14e361f8111eb7d2483429fa7328492c1.camel@skynet.be \
--to=philippe.waroquiers@skynet.be \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.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