From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10966 invoked by alias); 30 Aug 2002 14:41:15 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10952 invoked from network); 30 Aug 2002 14:41:14 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 30 Aug 2002 14:41:14 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 17kntc-0007kS-00; Fri, 30 Aug 2002 10:41:16 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 17kmyW-0003an-00; Fri, 30 Aug 2002 10:42:16 -0400 Date: Fri, 30 Aug 2002 08:14:00 -0000 From: Daniel Jacobowitz To: Michal Ludvig Cc: Pierre Muller , gdb-patches@sources.redhat.com Subject: Re: [RFA] New bitflags type and eflags on i386/x86-64 Message-ID: <20020830144216.GA13476@nevyn.them.org> Mail-Followup-To: Michal Ludvig , Pierre Muller , gdb-patches@sources.redhat.com References: <3CC42DA0.9070906@suse.cz> <3D6BF1D5.70409@ges.redhat.com> <3D6E231D.8060906@suse.cz> <20020829142120.GA5176@nevyn.them.org> <3D6E3666.7070309@suse.cz> <20020829150833.GA29973@nevyn.them.org> <3D6E40EE.5000904@ges.redhat.com> <4.2.0.58.20020830155945.00a473b0@ics.u-strasbg.fr> <3D6F81F5.2040002@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3D6F81F5.2040002@suse.cz> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-08/txt/msg01035.txt.bz2 On Fri, Aug 30, 2002 at 04:32:21PM +0200, Michal Ludvig wrote: > Pierre Muller wrote: > > set $eflags &=0xfffe > >if you wanted to clear the flag at position zero. > >Will this still be possible without typecasting the flag register ? > > Well ... no. But at least > set (int)$eflags &=0xfffe > works. You should be able to make the parser promote an lvalue of TYPE_CODE_FLAGS to TYPE_CODE_INT... > >or willsomething like > > set $eflags = $eflags | [ZF] > >be possible ? > > I don't know how to do this :-( This requires the parser for a given language to support creating TYPE_CODE_FLAGS. Not necessarily a good idea, our C parser is delicate enough already. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer