ax-gdb: Do not treat enums and bools as integers.
[deliverable/binutils-gdb.git] / gdb / ax-gdb.c
index 739677f0f3e00874fe566c2d50e5cf591f0105fb..37882be0a5c12783c2e7c9d92accd22eeb5a8409 100644 (file)
@@ -878,12 +878,6 @@ gen_usual_unary (struct expression *exp, struct agent_expr *ax,
     case TYPE_CODE_STRUCT:
     case TYPE_CODE_UNION:
       return;
-
-      /* If the value is an enum or a bool, call it an integer.  */
-    case TYPE_CODE_ENUM:
-    case TYPE_CODE_BOOL:
-      value->type = builtin_type (exp->gdbarch)->builtin_int;
-      break;
     }
 
   /* If the value is an lvalue, dereference it.  */
This page took 0.034873 seconds and 4 git commands to generate.