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: [RFA] BINOP_DIV and ptyp command


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



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