"$num_pp printers disabled.*0 of $num_pp printers enabled"
gdb_test "enable pretty-printer" \
- "$num_pp printers enabled.*$num_pp of $num_pp printers enabled"
+ "$num_pp printers enabled.*$num_pp of $num_pp printers enabled" \
+ "first enable of all pretty printers"
gdb_test "disable pretty-printer global" \
"$num_pp printers disabled.*0 of $num_pp printers enabled"
gdb_test "enable pretty-printer" \
- "$num_pp printers enabled.*$num_pp of $num_pp printers enabled"
+ "$num_pp printers enabled.*$num_pp of $num_pp printers enabled" \
+ "second enable of all pretty printers"
gdb_test "disable pretty-printer global lookup_function_lookup_test" \
"1 printer disabled.*[expr $num_pp - 1] of $num_pp printers enabled"
"[expr $num_pp - 2] printers disabled.*1 of $num_pp printers enabled"
gdb_test "info pretty-printer global .*function" \
- {.*function_lookup_test \[disabled\].*}
+ {.*function_lookup_test \[disabled\].*} \
+ "info pretty-printer for function, pretty-printer is disabled"
gdb_test "info pretty-printer .* pp-test" \
- {.*pp-test.*struct ss \[disabled\].*}
+ {.*pp-test.*struct ss \[disabled\].*} \
+ "info pretty-printer for pp-test, pretty-printer is disabled"
gdb_test "print flt" " = {x = 42, y = 43}" \
"print flt disabled"
"1 printer enabled.*$num_pp of $num_pp printers enabled"
gdb_test "info pretty-printer" \
- {.*function_lookup_test.*pp-test.*struct ss.*}
+ {.*function_lookup_test.*pp-test.*struct ss.*} \
+ "info pretty-printer after re-enabling"
gdb_test "print flt" " = x=<42> y=<43>" \
"print flt re-enabled"