This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [RFA] BINOP_DIV and ptyp command
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: "'Doug Evans'" <dje at sebabeach dot org>, <gdb-patches at sourceware dot org>
- Date: Wed, 30 Jan 2008 22:54:46 +0100
- Subject: RE: [RFA] BINOP_DIV and ptyp command
- References: <20080130172852.4CFD413EC2@sebabeach.org>
Doug, I like your patch but
> + else if (TYPE_CODE (type1) == TYPE_CODE_BOOL
> + && TYPE_CODE (type2) == TYPE_CODE_BOOL)
> + {
> + switch (op)
> + {
> + case BINOP_BITWISE_AND:
> + case BINOP_BITWISE_IOR:
> + case BINOP_BITWISE_XOR:
> + case BINOP_EQUAL:
> + case BINOP_NOTEQUAL:
> + break;
> + default:
> + error (_("Invalid operation on booleans."));
> + }
I would have expected that only
BINOP_LOGICAL_OR and BINOP_LOGICAL_AND
are valid for Booleans.
Am I wrong?
Pierre Muller