From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17510 invoked by alias); 19 Sep 2009 07:07:19 -0000 Received: (qmail 17499 invoked by uid 22791); 19 Sep 2009 07:07:18 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Sep 2009 07:07:12 +0000 Received: from brahms.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3) with ESMTP id n8J771pG005024; Sat, 19 Sep 2009 09:07:01 +0200 (CEST) Received: (from kettenis@localhost) by brahms.sibelius.xs4all.nl (8.14.3/8.14.3/Submit) id n8J770nt005979; Sat, 19 Sep 2009 09:07:00 +0200 (CEST) Date: Sat, 19 Sep 2009 07:07:00 -0000 Message-Id: <200909190707.n8J770nt005979@brahms.sibelius.xs4all.nl> From: Mark Kettenis To: dje@google.com CC: gdb-patches@sourceware.org In-reply-to: <20090918235632.0DDC6843AC@ruffy.mtv.corp.google.com> (dje@google.com) Subject: Re: [RFC] printing/setting flag register fields References: <20090918235632.0DDC6843AC@ruffy.mtv.corp.google.com> Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-09/txt/msg00622.txt.bz2 > 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?