[RFA] BINOP_DIV and ptyp command

Pierre Muller muller@ics.u-strasbg.fr
Wed Jan 30 22:58:00 GMT 2008


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




More information about the Gdb-patches mailing list