This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] printing/setting flag register fields


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]