Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Yao Qi <yao@codesourcery.com>
To: Tom Tromey <tromey@redhat.com>
Cc: Pedro Alves <palves@redhat.com>, Eli Zaretskii <eliz@gnu.org>,
	<gdb-patches@sourceware.org>
Subject: Re: [PATCH] Teach -data-list-register-values to not include unavailable registers
Date: Wed, 19 Jun 2013 10:03:00 -0000	[thread overview]
Message-ID: <51C18021.6080108@codesourcery.com> (raw)
In-Reply-To: <874ncva1uy.fsf@fleche.redhat.com>

On 06/18/2013 11:13 PM, Tom Tromey wrote:
> Why a new argument rather than just having MI annotate unavailable
> registers directly?
>
>    -data-list-register-values x 0 8
>    ^done,register-values=[{number="0",unavailable="1"},{number="8",value="0x80483de"}]
>

The MI front-end doesn't parse the output like this, as each register is 
represented by "number-value" pair.

> Is it not useful to see the unavailable ones?

Processor may have a large number of registers, and users are only 
interested in collected or available registers in a traceframe.  In this 
case, it is not useful to show (a large of number of) unavailable registers.

-- 
Yao (齐尧)


  reply	other threads:[~2013-06-19  9:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07 12:53 Yao Qi
2013-06-07 14:29 ` Eli Zaretskii
2013-06-07 20:09   ` Pedro Alves
2013-06-07 20:40     ` Pedro Alves
2013-06-08  3:48     ` Yao Qi
2013-06-08  5:21       ` Eli Zaretskii
2013-06-17 11:20       ` [ping]: " Yao Qi
2013-06-18 15:24       ` Tom Tromey
2013-06-19 10:03         ` Yao Qi [this message]
2013-06-19 19:07           ` Tom Tromey
2013-06-20  4:59             ` Yao Qi

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=51C18021.6080108@codesourcery.com \
    --to=yao@codesourcery.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    --cc=tromey@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