projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6b6bbb
)
Revert "ax-gdb: Do not treat enums and bools as integers."
author
Joel Brobecker
<brobecker@gnat.com>
Thu, 8 Mar 2012 22:19:09 +0000
(22:19 +0000)
committer
Joel Brobecker
<brobecker@gnat.com>
Thu, 8 Mar 2012 22:19:09 +0000
(22:19 +0000)
This patch was checked hasn't been reviewed and has been checked in
by mistake (wrong patch applied).
gdb/ax-gdb.c
patch
|
blob
|
history
diff --git
a/gdb/ax-gdb.c
b/gdb/ax-gdb.c
index cc057f89a02a4ca57c6b2d466f11921ec713e5a3..bd813380fe26339515dedf384ae475264dc86e40 100644
(file)
--- a/
gdb/ax-gdb.c
+++ b/
gdb/ax-gdb.c
@@
-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. */