This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] printing/setting flag register fields
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: dje at google dot com
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 19 Sep 2009 09:07:00 +0200 (CEST)
- Subject: Re: [RFC] printing/setting flag register fields
- References: <20090918235632.0DDC6843AC@ruffy.mtv.corp.google.com>
> Date: Fri, 18 Sep 2009 16:56:32 -0700 (PDT)
> From: dje@google.com (Doug Evans)
>
> "pty $eflags" output is a bit hard to read, but I thought I'd play
> with printing the field names *and* field positions.
There is a nasty problem here that bit numbering is inconsistent
across architectures. People typically call the LSB '0', but on
powerpc or hppa people start numbering from the MSB.
Also, how would you handle multi-bit fields?