}
# Test gdb.Value.format_string with no options.
-proc test_no_opts {} {
+proc_with_prefix test_no_opts {} {
global current_lang
check_var_with_no_opts "a_point_t"
}
# Test the raw option for gdb.Value.format_string.
-proc test_raw {} {
+proc_with_prefix test_raw {} {
global current_lang
global default_ref_regexp
}
# Test the pretty_arrays option for gdb.Value.format_string.
-proc test_pretty_arrays {} {
+proc_with_prefix test_pretty_arrays {} {
global current_lang
set an_array_pretty "\\{\[\r\n\]+ 2,\[\r\n\]+ 3,\[\r\n\]+ 5\[\r\n\]+\\}"
}
# Test the pretty_structs option for gdb.Value.format_string.
-proc test_pretty_structs {} {
+proc_with_prefix test_pretty_structs {} {
global current_lang
set a_struct_with_union_pretty \
}
# Test the array_indexes option for gdb.Value.format_string.
-proc test_array_indexes {} {
+proc_with_prefix test_array_indexes {} {
global current_lang
set an_array_with_indexes "\\{\\\[0\\\] = 2, \\\[1\\\] = 3, \\\[2\\\] = 5\\}"
}
# Test the symbols option for gdb.Value.format_string.
-proc test_symbols {} {
+proc_with_prefix test_symbols {} {
global undefined
global current_lang
global default_pointer_regexp
}
# Test the unions option for gdb.Value.format_string.
-proc test_unions {} {
+proc_with_prefix test_unions {} {
global undefined
global current_lang
}
# Test the address option for gdb.Value.format_string.
-proc test_address {} {
+proc_with_prefix test_address {} {
global undefined
global current_lang
}
# Test the deref_refs option for gdb.Value.format_string.
-proc test_deref_refs {} {
+proc_with_prefix test_deref_refs {} {
global current_lang
global default_pointer_regexp
global default_ref_regexp
}
# Test the actual_objects option for gdb.Value.format_string.
-proc test_actual_objects {} {
+proc_with_prefix test_actual_objects {} {
global current_lang
check_var_with_bool_opt "actual_objects" "a_point_t"
}
# Test the static_members option for gdb.Value.format_string.
-proc test_static_members {} {
+proc_with_prefix test_static_members {} {
global current_lang
check_var_with_bool_opt "static_members" "a_point_t"
}
# Test the max_elements option for gdb.Value.format_string.
-proc test_max_elements {} {
+proc_with_prefix test_max_elements {} {
global current_lang
global default_pointer_regexp
}
# Test the max_depth option for gdb.Value.format_string.
-proc test_max_depth {} {
+proc_with_prefix test_max_depth {} {
set opts "max_depth=-1"
with_test_prefix $opts {
check_format_string "a_struct_with_union" $opts
}
# Test the repeat_threshold option for gdb.Value.format_string.
-proc test_repeat_threshold {} {
+proc_with_prefix test_repeat_threshold {} {
global current_lang
global default_pointer_regexp
}
# Test the format option for gdb.Value.format_string.
-proc test_format {} {
+proc_with_prefix test_format {} {
global current_lang
global default_pointer_regexp
}
# Test mixing options.
-proc test_mixed {} {
+proc_with_prefix test_mixed {} {
global current_lang
global default_ref_regexp
global default_pointer_regexp
}
# Test passing invalid arguments to gdb.Value.format_string.
-proc test_invalid_args {} {
+proc_with_prefix test_invalid_args {} {
check_format_string \
"a_point_t" \
"12" \
}
# Run all the tests in common for both C and C++.
-proc test_all_common {} {
+proc_with_prefix test_all_common {} {
# No options.
test_no_opts
# Single options set to True/False.