Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: Pedro Alves <palves@redhat.com>
Cc: Alan Hayward <Alan.Hayward@arm.com>,
	 "gdb-patches\@sourceware.org" <gdb-patches@sourceware.org>,
	 nd <nd@arm.com>
Subject: Re: [PATCH V2] AArch64 pauth: Indicate unmasked addresses in backtrace
Date: Thu, 08 Aug 2019 16:58:00 -0000	[thread overview]
Message-ID: <87y30361bs.fsf@tromey.com> (raw)
In-Reply-To: <728af5fa-8e3d-845c-d72f-60b1d2067643@redhat.com> (Pedro Alves's	message of "Wed, 7 Aug 2019 20:24:39 +0100")

>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> Hmm, I had suggested considering MI in the previous iteration, but
Pedro> I was just thinking of including the "[PAC]" text in the
Pedro> "addr" field.  If we're adding a new field, then a few extra
Pedro> things need to be considered:

Pedro>  #1 - documentation, both manual and NEWS should mention this new MI field.

Oops, I forgot about this.  Sorry about that.

I don't think putting this information into the "addr" field is a good
idea.  It's better, IMO, to let MI field names provide the structure,
rather than requiring clients to also parse the values of fields.

I realize MI isn't 100% clean on this topic, but we can still not make
it worse.

Pedro>  #2 - calling the attribute "pac" makes it architecture specific. 

I don't think this is such a big deal but at the same time any
reasonable name is fine by me.

Pedro>  #3 - The MI attribute is called "pac", and its content is
Pedro>       literally " [PAC]".  I'd find that odd if I were a frontend author:
Pedro>       the content is right aligned with a space, making doing anything with
Pedro>       it other than appending it to the address text probably look odd,
Pedro>       unless you bake in awareness of the attribute's text...  If I saw
Pedro>       an attribute named "pac", I'd expect it to be a boolean?  At the
Pedro>       least, the left space should not be part of the field, I think?

I think part of the pain here is an internal constraint, namely that the
CLI ui-out wouldn't know to rewrite the boolean value to something else
here.  But perhaps that's something that could just be addressed
directly.

Tom


  parent reply	other threads:[~2019-08-08 16:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-30 14:41 Alan Hayward
2019-08-06 16:15 ` Tom Tromey
2019-08-07 12:35   ` Alan Hayward
2019-08-07 19:24 ` Pedro Alves
2019-08-08  8:55   ` Alan Hayward
2019-08-08 10:33     ` Pedro Alves
2019-08-09 13:22       ` Alan Hayward
2019-08-09 14:17         ` Pedro Alves
2019-08-09 14:46           ` Alan Hayward
2019-08-09 16:51             ` Pedro Alves
2019-08-08 16:58   ` Tom Tromey [this message]
2019-08-09 14:11     ` Pedro Alves

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=87y30361bs.fsf@tromey.com \
    --to=tom@tromey.com \
    --cc=Alan.Hayward@arm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=nd@arm.com \
    --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