Index: gdb/testsuite/gdb.python/py-pp-maint.py |
diff --git a/gdb/testsuite/gdb.python/py-pp-maint.py b/gdb/testsuite/gdb.python/py-pp-maint.py |
index c988f8891fa0598630e282668bc5a41505f3070e..1677371b90291ff7847872b52707508d22e6bf2d 100644 |
--- a/gdb/testsuite/gdb.python/py-pp-maint.py |
+++ b/gdb/testsuite/gdb.python/py-pp-maint.py |
@@ -67,6 +67,9 @@ def build_pretty_printer(): |
pp.add_printer('struct ss', '^struct ss$', lambda val: pp_ss(val)) |
pp.add_printer('ss', '^ss$', lambda val: pp_ss(val)) |
+ pp.add_printer('enum flag_enum', '^flag_enum$', |
+ gdb.printing.FlagEnumerationPrinter('enum flag_enum')) |
+ |
return pp |