Index: gdb/python/lib/gdb/types.py |
diff --git a/gdb/python/lib/gdb/types.py b/gdb/python/lib/gdb/types.py |
index aca84f3f668e11835b4ddd0170417fde7fc534c5..66c952896bbf41289f73649a7974751af72bd177 100644 |
--- a/gdb/python/lib/gdb/types.py |
+++ b/gdb/python/lib/gdb/types.py |
@@ -86,8 +86,8 @@ def make_enum_dict(enum_type): |
raise TypeError("not an enum type") |
enum_dict = {} |
for field in enum_type.fields(): |
- # The enum's value is stored in "bitpos". |
- enum_dict[field.name] = field.bitpos |
+ # The enum's value is stored in "enumval". |
+ enum_dict[field.name] = field.enumval |
return enum_dict |