aboutsummaryrefslogtreecommitdiff
path: root/gdb/valprint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r--gdb/valprint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c
index 738fef4..25b62bc 100644
--- a/gdb/valprint.c
+++ b/gdb/valprint.c
@@ -445,7 +445,7 @@ generic_val_print (struct type *type, const gdb_byte *valaddr,
for (i = 0; i < len; i++)
{
QUIT;
- if (val == TYPE_FIELD_BITPOS (type, i))
+ if (val == TYPE_FIELD_ENUMVAL (type, i))
{
break;
}
@@ -466,13 +466,13 @@ generic_val_print (struct type *type, const gdb_byte *valaddr,
{
QUIT;
- if ((val & TYPE_FIELD_BITPOS (type, i)) != 0)
+ if ((val & TYPE_FIELD_ENUMVAL (type, i)) != 0)
{
if (!first)
fputs_filtered (" | ", stream);
first = 0;
- val &= ~TYPE_FIELD_BITPOS (type, i);
+ val &= ~TYPE_FIELD_ENUMVAL (type, i);
fputs_filtered (TYPE_FIELD_NAME (type, i), stream);
}
}