Revert "ax-gdb: Do not treat enums and bools as integers."

This patch was checked hasn't been reviewed and has been checked in
by mistake (wrong patch applied).
This commit is contained in:
Joel Brobecker 2012-03-08 22:19:09 +00:00
parent d6b6bbb744
commit 735be1a2c1
1 changed files with 6 additions and 0 deletions

View File

@ -877,6 +877,12 @@ 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. */