Home | History | Annotate | Download | only in gdb.python

Lines Matching refs:opts

163 	opts
171 set name "${var} with option ${opts}"
175 "python print (gdb.parse_and_eval ('${var}').format_string (${opts}))" \
193 "no opts"
535 set opts "format='t', nibbles=True"
536 with_test_prefix $opts {
539 gdb_test "python print (gdb.Value (42).format_string (${opts}))" \
541 "42 with option ${opts}"
543 check_format_string "a_point_t" $opts \
545 check_format_string "a_point_t_pointer" $opts \
547 check_format_string "another_point" $opts \
550 check_format_string "a_struct_with_union" $opts \
552 check_format_string "an_enum" $opts \
554 check_format_string "a_string" $opts \
556 check_format_string "a_binary_string" $opts \
558 check_format_string "a_binary_string_array" $opts \
560 check_format_string "a_big_string" $opts \
562 check_format_string "an_array" $opts \
564 check_format_string "an_array_with_repetition" $opts \
566 check_format_string "a_symbol_pointer" $opts \
571 gdb_test "python print (gdb.Value (42).format_string (${opts}))" \
573 "42 with option ${opts}"
575 check_format_string "a_point_t" $opts \
577 check_format_string "a_point_t_pointer" $opts \
579 check_format_string "another_point" $opts \
582 check_format_string "a_struct_with_union" $opts \
584 check_format_string "an_enum" $opts \
586 check_format_string "a_string" $opts \
588 check_format_string "a_binary_string" $opts \
590 check_format_string "a_binary_string_array" $opts \
592 check_format_string "a_big_string" $opts \
594 check_format_string "an_array" $opts \
596 check_format_string "an_array_with_repetition" $opts \
598 check_format_string "a_symbol_pointer" $opts \
601 check_format_string "a_point_t_ref" $opts \
603 check_format_string "a_base_ref" $opts
714 set opts "max_$setting=200"
715 with_test_prefix $opts {
716 check_format_string "a_point_t" $opts
717 check_format_string "a_point_t_pointer" $opts
718 check_format_string "another_point" $opts
719 check_format_string "a_struct_with_union" $opts
720 check_format_string "an_enum" $opts
721 check_format_string "a_string" $opts
722 check_format_string "a_binary_string" $opts
723 check_format_string "a_binary_string_array" $opts
724 check_format_string "a_big_string" $opts
726 check_format_string "an_array" $opts
727 check_format_string "an_array_with_repetition" $opts
729 check_format_string "a_symbol_pointer" $opts
732 check_format_string "a_point_t_ref" $opts
733 check_format_string "a_base_ref" $opts
737 set opts "max_$setting=3"
738 with_test_prefix $opts {
739 check_format_string "a_point_t" $opts
740 check_format_string "a_point_t_pointer" $opts
741 check_format_string "another_point" $opts
742 check_format_string "a_struct_with_union" $opts
743 check_format_string "an_enum" $opts
744 check_format_string "a_string" $opts \
746 check_format_string "a_binary_string" $opts \
748 check_format_string "a_binary_string_array" $opts \
750 check_format_string "a_big_string" $opts \
753 check_format_string "an_array" $opts
754 check_format_string "an_array_with_repetition" $opts \
757 check_format_string "a_symbol_pointer" $opts
760 check_format_string "a_point_t_ref" $opts
761 check_format_string "a_base_ref" $opts
767 foreach opts [list "max_$setting=1000" "max_$setting=$unlimited"] {
768 with_test_prefix $opts {
769 check_format_string "a_point_t" $opts
770 check_format_string "a_point_t_pointer" $opts
771 check_format_string "another_point" $opts
772 check_format_string "a_struct_with_union" $opts
773 check_format_string "an_enum" $opts
774 check_format_string "a_string" $opts
775 check_format_string "a_binary_string" $opts
776 check_format_string "a_binary_string_array" $opts
777 check_format_string "a_big_string" $opts \
780 check_format_string "an_array" $opts
781 check_format_string "an_array_with_repetition" $opts
783 check_format_string "a_symbol_pointer" $opts
786 check_format_string "a_point_t_ref" $opts
787 check_format_string "a_base_ref" $opts
815 set opts "max_depth=-1"
816 with_test_prefix $opts {
817 check_format_string "a_struct_with_union" $opts
818 check_format_string "a_point_t" $opts "Pretty Point \\(42, 12\\)"
819 check_format_string "a_struct_with_point" $opts
821 set opts "max_depth=0"
822 with_test_prefix $opts {
823 check_format_string "a_struct_with_union" $opts "\\{\.\.\.\\}"
824 check_format_string "a_point_t" $opts "Pretty Point \\(42, 12\\)"
825 check_format_string "a_struct_with_point" $opts "\\{\.\.\.\\}"
827 set opts "max_depth=1"
828 with_test_prefix $opts {
829 check_format_string "a_struct_with_union" $opts "\\{the_union = \\{\.\.\.\\}\\}"
830 check_format_string "a_point_t" $opts "Pretty Point \\(42, 12\\)"
831 check_format_string "a_struct_with_point" $opts
833 set opts "max_depth=2"
834 with_test_prefix $opts {
835 check_format_string "a_struct_with_union" $opts
836 check_format_string "a_point_t" $opts "Pretty Point \\(42, 12\\)"
837 check_format_string "a_struct_with_point" $opts
848 set opts "repeat_threshold=10"
849 with_test_prefix $opts {
850 check_format_string "a_point_t" $opts
851 check_format_string "a_point_t_pointer" $opts
852 check_format_string "another_point" $opts
853 check_format_string "a_struct_with_union" $opts
854 check_format_string "an_enum" $opts
855 check_format_string "a_string" $opts
856 check_format_string "a_binary_string" $opts
857 check_format_string "a_binary_string_array" $opts
858 check_format_string "a_big_string" $opts
859 check_format_string "an_array" $opts
860 check_format_string "an_array_with_repetition" $opts
861 check_format_string "a_symbol_pointer" $opts
864 check_format_string "a_point_t_ref" $opts
865 check_format_string "a_base_ref" $opts
869 set opts "repeat_threshold=1"
870 with_test_prefix $opts {
871 check_format_string "a_point_t" $opts
872 check_format_string "a_point_t_pointer" $opts
873 check_format_string "another_point" $opts
874 check_format_string "a_struct_with_union" $opts
875 check_format_string "an_enum" $opts
876 check_format_string "a_string" $opts \
878 check_format_string "a_binary_string" $opts \
880 check_format_string "a_binary_string_array" $opts \
882 check_format_string "a_big_string" $opts
883 check_format_string "an_array" $opts
884 check_format_string "an_array_with_repetition" $opts \
887 check_format_string "a_symbol_pointer" $opts
890 check_format_string "a_point_t_ref" $opts
891 check_format_string "a_base_ref" $opts
895 set opts "repeat_threshold=3"
896 with_test_prefix $opts {
897 check_format_string "a_point_t" $opts
898 check_format_string "a_point_t_pointer" $opts
899 check_format_string "another_point" $opts
900 check_format_string "a_struct_with_union" $opts
901 check_format_string "an_enum" $opts
902 check_format_string "a_string" $opts
903 check_format_string "a_binary_string" $opts
904 check_format_string "a_binary_string_array" $opts
905 check_format_string "a_big_string" $opts
906 check_format_string "an_array" $opts
907 check_format_string "an_array_with_repetition" $opts
908 check_format_string "a_symbol_pointer" $opts
911 check_format_string "a_point_t_ref" $opts
912 opts
918 foreach opts { "repeat_threshold=100" "repeat_threshold=0" } {
919 with_test_prefix $opts {
920 check_format_string "a_point_t" $opts
921 check_format_string "a_point_t_pointer" $opts
922 check_format_string "another_point" $opts
923 check_format_string "a_struct_with_union" $opts
924 check_format_string "an_enum" $opts
925 check_format_string "a_string" $opts
926 check_format_string "a_binary_string" $opts
927 check_format_string "a_binary_string_array" $opts
928 check_format_string "a_big_string" $opts
929 check_format_string "an_array" $opts
930 check_format_string "an_array_with_repetition" $opts \
932 check_format_string "a_symbol_pointer" $opts
935 check_format_string "a_point_t_ref" $opts
936 check_format_string "a_base_ref" $opts
953 set opts "format='x'"
954 with_test_prefix $opts {
955 gdb_test "python print (gdb.Value (42).format_string (${opts}))" \
957 "42 with option ${opts}"
959 check_format_string "a_point_t" $opts \
961 check_format_string "a_point_t_pointer" $opts
962 check_format_string "another_point" $opts \
964 check_format_string "a_struct_with_union" $opts \
966 check_format_string "an_enum" $opts \
968 check_format_string "a_string" $opts \
970 check_format_string "a_binary_string" $opts \
972 check_format_string "a_binary_string_array" $opts \
974 check_format_string "a_big_string" $opts \
976 check_format_string "an_array" $opts \
978 check_format_string "an_array_with_repetition" $opts \
980 check_format_string "a_symbol_pointer" $opts \
984 check_format_string "a_point_t_ref" $opts \
986 check_format_string "a_base_ref" $opts
991 set opts "format='t'"
992 with_test_prefix $opts {
994 gdb_test "python print (gdb.Value (42).format_string (${opts}))" \
996 "42 with option ${opts}"
998 check_format_string "a_point_t" $opts \
1000 check_format_string "a_point_t_pointer" $opts \
1002 check_format_string "another_point" $opts \
1004 check_format_string "a_struct_with_union" $opts \
1006 check_format_string "an_enum" $opts \
1008 check_format_string "a_string" $opts \
1010 check_format_string "a_binary_string" $opts \
1012 check_format_string "a_binary_string_array" $opts \
1014 check_format_string "a_big_string" $opts \
1016 check_format_string "an_array" $opts \
1018 check_format_string "an_array_with_repetition" $opts \
1020 check_format_string "a_symbol_pointer" $opts \
1024 check_format_string "a_point_t_ref" $opts \
1026 check_format_string "a_base_ref" $opts
1031 set opts "format='d'"
1032 with_test_prefix $opts {
1034 gdb_test "python print (gdb.Value (0x2a).format_string (${opts}))" \
1036 "0x2a with option ${opts}"
1038 check_format_string "a_point_t" $opts
1039 check_format_string "a_point_t_pointer" $opts \
1041 check_format_string "another_point" $opts
1042 check_format_string "a_struct_with_union" $opts \
1044 check_format_string "an_enum" $opts \
1046 check_format_string "a_string" $opts \
1048 check_format_string "a_binary_string" $opts \
1050 check_format_string "a_binary_string_array" $opts \
1052 check_format_string "a_big_string" $opts \
1054 check_format_string "an_array" $opts
1055 check_format_string "an_array_with_repetition" $opts
1056 check_format_string "a_symbol_pointer" $opts \
1060 check_format_string "a_point_t_ref" $opts
1061 check_format_string "a_base_ref" $opts