This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] New bitflags type and eflags on i386/x86-64
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