[RFC] printing/setting flag register fields

Mark Kettenis mark.kettenis@xs4all.nl
Sat Sep 19 07:07:00 GMT 2009


> 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?



More information about the Gdb-patches mailing list