diff options
author | Tom Tromey <tromey@adacore.com> | 2022-07-15 09:38:32 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-07-15 09:42:39 -0600 |
commit | 3028a2dbbffb2e15cc2364d0c962951f6f2230f2 (patch) | |
tree | c862364ac2803f92e29542b656656f2365700bf7 /gdb/testsuite | |
parent | ebbac1687d0075c8666b25438fc4f35d3dd1daaa (diff) | |
download | gdb-3028a2dbbffb2e15cc2364d0c962951f6f2230f2.zip gdb-3028a2dbbffb2e15cc2364d0c962951f6f2230f2.tar.gz gdb-3028a2dbbffb2e15cc2364d0c962951f6f2230f2.tar.bz2 |
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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.python/py-format-string.exp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp index c432de9..45b0851 100644 --- a/gdb/testsuite/gdb.python/py-format-string.exp +++ b/gdb/testsuite/gdb.python/py-format-string.exp @@ -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" \ |