Add 'nibbles' to gdb.print_options

When I rebased and updated the print_options patch, I forgot to update
print_options to add the new 'nibbles' feature to the result.  This
patch fixes the oversight.  I'm checking this in.
This commit is contained in:
Tom Tromey 2022-07-15 09:38:32 -06:00
parent ebbac1687d
commit 3028a2dbbf
2 changed files with 6 additions and 2 deletions

View file

@ -1122,11 +1122,13 @@ proc test_print_options {} {
gdb_test "python print('format' in gdb.print_options())" "False" \
"examine format"
check_format_string "a_point_t" "format='t'" \
"Pretty Point \\(101010, 1100\\)" \
check_format_string "a_point_t" "format='t', nibbles=True" \
"Pretty Point \\(0010.1010, 1100\\)" \
"print in binary to fetch options"
gdb_test "python print(saved_options\['format'\] == 't')" "True" \
"format was set"
gdb_test "python print(saved_options\['nibbles'\])" "True" \
"nibbles was set"
check_format_string "a_point_t" "summary=True" \
"No Data" \