Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: walfred.tedeschi@intel.com, gdb-patches@sourceware.org
Subject: Re: [PATCH V2] ABI changes for MPX.
Date: Sat, 19 Dec 2015 08:16:00 -0000	[thread overview]
Message-ID: <83wpsavony.fsf@gnu.org> (raw)
In-Reply-To: <20151218172452.GB29928@adacore.com> (message from Joel Brobecker	on Fri, 18 Dec 2015 21:24:52 +0400)

> Date: Fri, 18 Dec 2015 21:24:52 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: "Tedeschi, Walfred" <walfred.tedeschi@intel.com>,
> 	gdb-patches@sourceware.org
> 
> > Thanks, I understand now.  So why would a GDB user want to set
> > mpx-bnd-init-on-return to zero?  The result will always be a bound
> > violation, no?
> 
> If I understand correctly, which is a fairly big if, it will
> depend on how far in the function's execution you've gone through.
> If you return early enough that the bound registers are still
> uninitialized, then you want to initialize them to make sure that
> there will be no bound violation due to the premature return.
> On the other hand, there might be some situations where you know
> the bound registers have been set, and you want to preserve their
> value, rather than blindly setting it to zero. For instance, what
> if there was, in fact, a bound violation. Setting it to zero would
> change the program's behavior by canceling the reporting of that
> violation.
> 
> PS: FWIW, I dislike the term "initialize", here, because it always
>     begs the question: "initialize to what?". If this is the
>     terminology used in the reference documentation and is known
>     to the community working on those chips, then I guess we have
>     to go with the flow. But otherwise, I personally would advocate
>     for another term, such as "reset" or "set to zero".
>     Just my 2 cents.

Thanks.

Walfred, any additional comments?  If not, I will suggest rewording of
your additions to the manual, to the effect of what Joel wrote above.

Thanks.


  reply	other threads:[~2015-12-19  8:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-17 13:24 Walfred Tedeschi
2015-12-17 16:35 ` Eli Zaretskii
2015-12-17 16:44   ` Tedeschi, Walfred
2015-12-18 15:11     ` Eli Zaretskii
2015-12-18 17:24       ` Joel Brobecker
2015-12-19  8:16         ` Eli Zaretskii [this message]
2015-12-18 17:19 ` 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=83wpsavony.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=walfred.tedeschi@intel.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