This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Teach -data-list-register-values to not include unavailable registers
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: Pedro Alves <palves at redhat dot com>, Eli Zaretskii <eliz at gnu dot org>, <gdb-patches at sourceware dot org>
- Date: Tue, 18 Jun 2013 09:13:25 -0600
- Subject: Re: [PATCH] Teach -data-list-register-values to not include unavailable registers
- References: <1370609650-23595-1-git-send-email-yao at codesourcery dot com> <83sj0ut2ob dot fsf at gnu dot org> <51B23B65 dot 8060309 at redhat dot com> <51B28F73 dot 30301 at codesourcery dot com>
Yao> + ** The command -data-list-register-values now accepts an optional
Yao> + "--skip-unavailable" option. When used, only the available registers
Yao> + are displayed.
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"}]
Is it not useful to see the unavailable ones?
Other than this question I think the patch is ok.
Tom