This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Flags fields in register xml descriptions are suboptimal: What to do?
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 04 Feb 2016 15:11:54 +0000
- Subject: Re: Flags fields in register xml descriptions are suboptimal: What to do?
- Authentication-results: sourceware.org; auth=none
- References: <001a1135ed32b4c71c052ae6879a at google dot com> <8660y4pmh1 dot fsf at gmail dot com>
On 02/04/2016 02:40 PM, Yao Qi wrote:
>>
>> Also, I'd like to print flags even if they're zero. E.g.,
>>
>> (gdb) i r cpsr
>> cpsr 0xa0000020 123456 [ Z !C N !V EL=1 ... ]
>>
>> or some such.
>> IOW, instead of not printing fields that are zero/false/off,
>> print them as "!FIELD".
>
> I am not sure of this one.
Me neither. I don't think I'd like it, personally. I find it easier to
spot the rogue TF or some such if only the set bits are displayed.
And I imagine that with a 64-bit flags register that would result in
a very long string hard to grok.
Thanks,
Pedro Alves