]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Reindent gdb.ada tests
authorTom Tromey <tromey@adacore.com>
Tue, 16 Dec 2025 21:04:11 +0000 (14:04 -0700)
committerTom Tromey <tromey@adacore.com>
Tue, 6 Jan 2026 18:12:26 +0000 (11:12 -0700)
Various gdb.ada tests had incorrect indentation.  This patch reformats
these.  It was written by script.

160 files changed:
gdb/testsuite/gdb.ada/O2_float_param.exp
gdb/testsuite/gdb.ada/access_tagged_param.exp
gdb/testsuite/gdb.ada/access_to_packed_array.exp
gdb/testsuite/gdb.ada/addr_arith.exp
gdb/testsuite/gdb.ada/arr_arr.exp
gdb/testsuite/gdb.ada/array_bounds.exp
gdb/testsuite/gdb.ada/array_char_idx.exp
gdb/testsuite/gdb.ada/array_return.exp
gdb/testsuite/gdb.ada/array_subscript_addr.exp
gdb/testsuite/gdb.ada/arraydim.exp
gdb/testsuite/gdb.ada/arrayidx.exp
gdb/testsuite/gdb.ada/assign_1.exp
gdb/testsuite/gdb.ada/assign_arr.exp
gdb/testsuite/gdb.ada/assoc.exp
gdb/testsuite/gdb.ada/atomic_enum.exp
gdb/testsuite/gdb.ada/attr_ref_and_charlit.exp
gdb/testsuite/gdb.ada/bad-task-bp-keyword.exp
gdb/testsuite/gdb.ada/big_packed_array.exp
gdb/testsuite/gdb.ada/boolean_expr.exp
gdb/testsuite/gdb.ada/bp_c_mixed_case.exp
gdb/testsuite/gdb.ada/bp_enum_homonym.exp
gdb/testsuite/gdb.ada/bp_fun_addr.exp
gdb/testsuite/gdb.ada/bp_inlined_func.exp
gdb/testsuite/gdb.ada/bp_on_var.exp
gdb/testsuite/gdb.ada/bp_range_type.exp
gdb/testsuite/gdb.ada/bp_reset.exp
gdb/testsuite/gdb.ada/break-label.exp
gdb/testsuite/gdb.ada/byte_packed_arr.exp
gdb/testsuite/gdb.ada/call_pn.exp
gdb/testsuite/gdb.ada/catch_assert_if.exp
gdb/testsuite/gdb.ada/catch_ex.exp
gdb/testsuite/gdb.ada/catch_ex_std.exp
gdb/testsuite/gdb.ada/char_enum.exp
gdb/testsuite/gdb.ada/char_enum_overload.exp
gdb/testsuite/gdb.ada/char_enum_unicode.exp
gdb/testsuite/gdb.ada/char_param.exp
gdb/testsuite/gdb.ada/complete.exp
gdb/testsuite/gdb.ada/cond_lang.exp
gdb/testsuite/gdb.ada/convvar_comp.exp
gdb/testsuite/gdb.ada/dgopt.exp
gdb/testsuite/gdb.ada/disc_arr_bound.exp
gdb/testsuite/gdb.ada/discrete-char.exp
gdb/testsuite/gdb.ada/dot_all.exp
gdb/testsuite/gdb.ada/dyn_arrayidx.exp
gdb/testsuite/gdb.ada/dyn_loc.exp
gdb/testsuite/gdb.ada/dyn_stride.exp
gdb/testsuite/gdb.ada/dynamic-iface.exp
gdb/testsuite/gdb.ada/enums_overload.exp
gdb/testsuite/gdb.ada/excep_handle.exp
gdb/testsuite/gdb.ada/exec_changed.exp
gdb/testsuite/gdb.ada/expr_delims.exp
gdb/testsuite/gdb.ada/expr_with_funcall.exp
gdb/testsuite/gdb.ada/exprs.exp
gdb/testsuite/gdb.ada/extended-access.exp
gdb/testsuite/gdb.ada/fin_fun_out.exp
gdb/testsuite/gdb.ada/finish-large.exp
gdb/testsuite/gdb.ada/finish-var-size.exp
gdb/testsuite/gdb.ada/fixed_cmp.exp
gdb/testsuite/gdb.ada/fixed_points_function.exp
gdb/testsuite/gdb.ada/float_param.exp
gdb/testsuite/gdb.ada/frame_args.exp
gdb/testsuite/gdb.ada/fullname_bp.exp
gdb/testsuite/gdb.ada/fun_addr.exp
gdb/testsuite/gdb.ada/fun_in_declare.exp
gdb/testsuite/gdb.ada/fun_overload_menu.exp
gdb/testsuite/gdb.ada/fun_renaming.exp
gdb/testsuite/gdb.ada/funcall_char.exp
gdb/testsuite/gdb.ada/funcall_param.exp
gdb/testsuite/gdb.ada/funcall_ptr.exp
gdb/testsuite/gdb.ada/ghost.exp
gdb/testsuite/gdb.ada/homonym.exp
gdb/testsuite/gdb.ada/info_addr_mixed_case.exp
gdb/testsuite/gdb.ada/info_auto_lang.exp
gdb/testsuite/gdb.ada/info_exc.exp
gdb/testsuite/gdb.ada/info_types.exp
gdb/testsuite/gdb.ada/int_deref.exp
gdb/testsuite/gdb.ada/interface.exp
gdb/testsuite/gdb.ada/iwide.exp
gdb/testsuite/gdb.ada/lang_switch.exp
gdb/testsuite/gdb.ada/length_cond.exp
gdb/testsuite/gdb.ada/limited-length.exp
gdb/testsuite/gdb.ada/local-enum.exp
gdb/testsuite/gdb.ada/maint_with_ada.exp
gdb/testsuite/gdb.ada/mi_catch_assert.exp
gdb/testsuite/gdb.ada/mi_catch_ex.exp
gdb/testsuite/gdb.ada/mi_catch_ex_hand.exp
gdb/testsuite/gdb.ada/mi_dyn_arr.exp
gdb/testsuite/gdb.ada/mi_ex_cond.exp
gdb/testsuite/gdb.ada/mi_exc_info.exp
gdb/testsuite/gdb.ada/mi_interface.exp
gdb/testsuite/gdb.ada/mi_prot.exp
gdb/testsuite/gdb.ada/mi_ref_changeable.exp
gdb/testsuite/gdb.ada/mi_task_arg.exp
gdb/testsuite/gdb.ada/mi_task_info.exp
gdb/testsuite/gdb.ada/minsyms.exp
gdb/testsuite/gdb.ada/n_arr_bound.exp
gdb/testsuite/gdb.ada/nested.exp
gdb/testsuite/gdb.ada/notcplusplus.exp
gdb/testsuite/gdb.ada/null_array.exp
gdb/testsuite/gdb.ada/null_record.exp
gdb/testsuite/gdb.ada/operator_bp.exp
gdb/testsuite/gdb.ada/optim_drec.exp
gdb/testsuite/gdb.ada/packed_array_assign.exp
gdb/testsuite/gdb.ada/pckd_neg.exp
gdb/testsuite/gdb.ada/pkd_arr_elem.exp
gdb/testsuite/gdb.ada/pp-rec-component.exp
gdb/testsuite/gdb.ada/print_chars.exp
gdb/testsuite/gdb.ada/print_pc.exp
gdb/testsuite/gdb.ada/ptr_typedef.exp
gdb/testsuite/gdb.ada/ptype_arith_binop.exp
gdb/testsuite/gdb.ada/ptype_array.exp
gdb/testsuite/gdb.ada/ptype_field.exp
gdb/testsuite/gdb.ada/ptype_tagged_param.exp
gdb/testsuite/gdb.ada/py_range.exp
gdb/testsuite/gdb.ada/rdv_wait.exp
gdb/testsuite/gdb.ada/rec_comp.exp
gdb/testsuite/gdb.ada/rec_return.exp
gdb/testsuite/gdb.ada/ref_param.exp
gdb/testsuite/gdb.ada/ref_tick_size.exp
gdb/testsuite/gdb.ada/rename_subscript_param.exp
gdb/testsuite/gdb.ada/repeat_dyn.exp
gdb/testsuite/gdb.ada/return-small-char-array.exp
gdb/testsuite/gdb.ada/same_enum.exp
gdb/testsuite/gdb.ada/scalar_storage.exp
gdb/testsuite/gdb.ada/scoped_watch.exp
gdb/testsuite/gdb.ada/set_wstr.exp
gdb/testsuite/gdb.ada/small_reg_param.exp
gdb/testsuite/gdb.ada/start.exp
gdb/testsuite/gdb.ada/static-link.exp
gdb/testsuite/gdb.ada/str_binop_equal.exp
gdb/testsuite/gdb.ada/str_chars.exp
gdb/testsuite/gdb.ada/str_ref_cmp.exp
gdb/testsuite/gdb.ada/str_uninit.exp
gdb/testsuite/gdb.ada/sub_variant.exp
gdb/testsuite/gdb.ada/sym_print_name.exp
gdb/testsuite/gdb.ada/taft_type.exp
gdb/testsuite/gdb.ada/tagged-lookup.exp
gdb/testsuite/gdb.ada/tagged.exp
gdb/testsuite/gdb.ada/task_bp.exp
gdb/testsuite/gdb.ada/task_switch_in_core.exp
gdb/testsuite/gdb.ada/task_watch.exp
gdb/testsuite/gdb.ada/tasks.exp
gdb/testsuite/gdb.ada/tick_last_segv.exp
gdb/testsuite/gdb.ada/tick_length_array_enum_idx.exp
gdb/testsuite/gdb.ada/type_coercion.exp
gdb/testsuite/gdb.ada/uninitialized-variable-record.exp
gdb/testsuite/gdb.ada/uninitialized_vars.exp
gdb/testsuite/gdb.ada/unsigned_last.exp
gdb/testsuite/gdb.ada/var_arr_attrs.exp
gdb/testsuite/gdb.ada/var_arr_typedef.exp
gdb/testsuite/gdb.ada/variant-record.exp
gdb/testsuite/gdb.ada/variant_record_field.exp
gdb/testsuite/gdb.ada/varsize_limit.exp
gdb/testsuite/gdb.ada/vla.exp
gdb/testsuite/gdb.ada/voidctx.exp
gdb/testsuite/gdb.ada/watch_arg.exp
gdb/testsuite/gdb.ada/watch_minus_l.exp
gdb/testsuite/gdb.ada/whatis_array_val.exp
gdb/testsuite/gdb.ada/widewide.exp
gdb/testsuite/gdb.ada/win_fu_syms.exp

index ac97af22b1cb3021bcd7b144a634c6fb1f959c5b..c06fc2128e88c1ef20d3f6aef3e68c5054640c3c 100644 (file)
@@ -22,7 +22,7 @@ standard_ada_testfile foo
 set have_xfail 0
 if {[is_aarch64_target]} {
     if { [gnat_version_compare < 9] } {
-       set have_xfail 1
+       set have_xfail 1
     }
 }
 
@@ -47,18 +47,18 @@ foreach_gnat_encoding scenario flags {all minimal} {
     set re \
        "#0.*callee\\.increment \\(val(=val@entry)?=99\\.0, msg=\\.\\.\\.\\).*"
     set re_different_entry_val \
-       "#0\\s+callee\\.increment \\(val=99.0, val@entry=.*, msg=\\.\\.\\.\\).*"
+       "#0\\s+callee\\.increment \\(val=99.0, val@entry=.*, msg=\\.\\.\\.\\).*"
     gdb_test_multiple "frame" "" {
-       -re -wrap $re {
-          pass $gdb_test_name
-       }
-       -re -wrap $re_different_entry_val {
-          if { $have_xfail } {
-             # GCC PR98148
-             xfail $gdb_test_name
-          } else {
-             fail $gdb_test_name
-          }
-       }
+       -re -wrap $re {
+           pass $gdb_test_name
+       }
+       -re -wrap $re_different_entry_val {
+           if { $have_xfail } {
+               # GCC PR98148
+               xfail $gdb_test_name
+           } else {
+               fail $gdb_test_name
+           }
+       }
     }
 }
index 337ca17aeafdbe57bd9c405882db2e1a7c385419..1e470f9e3c21fbd4338c765a97b9abc8793b939a 100644 (file)
@@ -23,13 +23,13 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto "foo"]} {
-  return
+    return
 }
 
 gdb_breakpoint "pck.adb:19"
@@ -38,4 +38,4 @@ gdb_breakpoint "pck.adb:19"
 # the value of all the parameters.
 
 gdb_test "continue" \
-        ".*Breakpoint $decimal, pck\\.inspect \\(obj=$hex, <objL>=\[1-9\]\\) at .*"
+    ".*Breakpoint $decimal, pck\\.inspect \\(obj=$hex, <objL>=\[1-9\]\\) at .*"
index 1d4df5d4b03005bc32caf99aa0e5851f98900199..bff580bc7d0fd9b77e4ce50043c44a7012db8b56 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index d11161ece9327589c631994a1fa5f5edaaea35c9..9f025b227e840ed9be05b973c7279362a911f13d 100644 (file)
@@ -20,24 +20,24 @@ require allow_ada_tests
 standard_ada_testfile foo_na07_019
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/foo_na07_019.adb]
 if {![runto "foo_na07_019.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print something'address + 0" \
-        "\\(system\\.address\\) $hex <pck\\.something>"
+    "\\(system\\.address\\) $hex <pck\\.something>"
 
 gdb_test "print 0 + something'address" \
-        "\\(system\\.address\\) $hex <pck\\.something>"
+    "\\(system\\.address\\) $hex <pck\\.something>"
 
 gdb_test "print something'address - 0" \
-        "\\(system\\.address\\) $hex <pck\\.something>"
+    "\\(system\\.address\\) $hex <pck\\.something>"
 
 gdb_test "print 0 - something'address" \
-        "\\(system\\.address\\) $hex.*"
+    "\\(system\\.address\\) $hex.*"
index 81e41f55611e4fbd19e53ba24635c4be489e1a39..f586c348026ee9ddbfaa88a18673f05e4fa78f3c 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 # Accept "foo." prefix for older versions of GNAT.
index 124d8668123f7e8e38873703e69e1abac084bccd..f9b4fb48cc3699959cc4ba5d3ad7a3b71d09305c 100644 (file)
@@ -20,24 +20,24 @@ require allow_ada_tests
 standard_ada_testfile bar
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/bar.adb]
 if {![runto "bar.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print itable'first" \
-        "= 2"
+    "= 2"
 
 gdb_test "print itable'last" \
-        "= 5"
+    "= 5"
 
 gdb_test "print table'first" \
-        "= zero"
+    "= zero"
 
 gdb_test "print table'last" \
-        "= two"
+    "= two"
index 1989ee15baf3223f61640d2b15eebe0fee00dd74..5101cd42003ed529f0e209ffb69fe00ee4161ac6 100644 (file)
@@ -26,12 +26,12 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 clean_restart ${testfile}
 
 gdb_test "ptype char_table" \
-        "= array \\(character\\) of natural"
+    "= array \\(character\\) of natural"
 
 gdb_test "ptype global_char_table" \
-        "= array \\(character\\) of natural"
+    "= array \\(character\\) of natural"
 
 # Some more recent versions of gcc can statically initialize this
 # array, so we allow either 0 or 4874.
 gdb_test "print my_table" "= \\((0|4874) <repeats 256 times>\\)" \
-        "Display my_table"
+    "Display my_table"
index 206981b30e5ee83385d68d330b664515b0aadbe3..11cd1736c64da9bb112766ea7b67f77573b3f914 100644 (file)
@@ -34,61 +34,61 @@ clean_restart ${testfile}
 # Start the inferior
 
 if {![runto_main]} {
-   return
+    return
 }
 
 # Create a breakpoint in each function from which we want to test
 # the "finish" command.
 
 gdb_test "break create_small" \
-        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
-        "insert breakpoint in create_small"
+    "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
+    "insert breakpoint in create_small"
 
 gdb_test "break create_large" \
-        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
-        "insert breakpoint in create_large"
+    "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
+    "insert breakpoint in create_large"
 
 gdb_test "break create_small_float_vector" \
-        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
-        "insert breakpoint in create_small_float_vector"
+    "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+." \
+    "insert breakpoint in create_small_float_vector"
 
 # Then continue until reaching the first breakpoint inside Create_Small,
 # and then do a "finish".
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+, pck.create_small \\(\\).*" \
-        "continuing to Create_Small"
+    "Breakpoint \[0-9\]+, pck.create_small \\(\\).*" \
+    "continuing to Create_Small"
 
 gdb_test "finish" \
-        "Value returned is \\\$\[0-9\]+ = \\(1, 1\\)" \
-        "value printed by finish of Create_Small"
+    "Value returned is \\\$\[0-9\]+ = \\(1, 1\\)" \
+    "value printed by finish of Create_Small"
 
 # Now continue until reaching the second breakpoint inside Create_Large,
 # and then do another "finish".
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+, pck.create_large \\(\\).*" \
-        "continuing to Create_Large"
+    "Breakpoint \[0-9\]+, pck.create_large \\(\\).*" \
+    "continuing to Create_Large"
 
 # On hppa32, the value returned is too large to be returned via a register.
 # Instead, it is returned using the struct convention, and the debugger
 # unfortunately cannot find the address of the result.  The following
 # test is therefore expected to fail for all hppa targets except hppa64.
 if {![istarget "hppa*64*-*-*"]} {
-  setup_xfail "hppa*-*-*"
+    setup_xfail "hppa*-*-*"
 }
 
 gdb_test "finish" \
-        "Value returned is \\\$\[0-9\]+ = \\(2, 2, 2, 2\\)" \
-        "value printed by finish of Create_Large"
+    "Value returned is \\\$\[0-9\]+ = \\(2, 2, 2, 2\\)" \
+    "value printed by finish of Create_Large"
 
 # Now continue until reaching the third breakpoint, and then do another
 # "finish" again.
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+, pck.create_small_float_vector \\(\\).*" \
-        "continuing to Create_Small_Float_Vector"
+    "Breakpoint \[0-9\]+, pck.create_small_float_vector \\(\\).*" \
+    "continuing to Create_Small_Float_Vector"
 
 gdb_test "finish" \
-        "Value returned is \\\$\[0-9\]+ = \\(4.25, 4.25\\)" \
-        "value printed by finish of Create_Small_Float_Vector"
+    "Value returned is \\\$\[0-9\]+ = \\(4.25, 4.25\\)" \
+    "value printed by finish of Create_Small_Float_Vector"
index 725de1ee1b66bbac23b45a9cac6eea558fedd67b..23291b3c1cb5999c3f31e915adbb4d017223232a 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,4 +31,4 @@ runto "p.adb:$bp_location"
 # Verify that we can compare a string slice with another string.
 
 gdb_test "print a(2)'Address" \
-        "= \\(system\\.address\\) 0x\[0-9a-fA-F\]+"
+    "= \\(system\\.address\\) 0x\[0-9a-fA-F\]+"
index 03096925dad0338541dd2ea31080790d1774c60f..7b84a7af9b799faab332cbd812e5d61147761326 100644 (file)
@@ -25,7 +25,7 @@ set cobject [standard_output_file ${cfile}.o]
 
 gdb_compile "${csrcfile}" "${cobject}" object [list debug]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-largs additional_flags=${cobject} additional_flags=-margs]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,7 +34,7 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "ptype m" \
-        "array \\(1 \\.\\. 1, 2 \\.\\. 3, 4 \\.\\. 6\\) of integer"
+    "array \\(1 \\.\\. 1, 2 \\.\\. 3, 4 \\.\\. 6\\) of integer"
 
 gdb_test "print m'first" " = 1"
 gdb_test "print m'last" " = 1"
@@ -53,7 +53,7 @@ gdb_test "print m'last(3)" " = 6"
 gdb_test "print m'length(3)" " = 3"
 
 gdb_test "ptype global_3dim_for_gdb_testing" \
-        "array \\(0 \\.\\. 0, 0 \\.\\. 1, 0 \\.\\. 2\\) of int"
+    "array \\(0 \\.\\. 0, 0 \\.\\. 1, 0 \\.\\. 2\\) of int"
 
 gdb_test "print global_3dim_for_gdb_testing'first" " = 0"
 gdb_test "print global_3dim_for_gdb_testing'last" " = 0"
index cebafe1c4933f38aa9087618972fcf0206d7570a..401b00623352acdae3da0d2bed0f1da26cbb05a7 100644 (file)
@@ -38,45 +38,45 @@ if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print one_two_three" \
-        "= \\(1, 2, 3\\)" \
-        "print one_two_three, indexes off"
+    "= \\(1, 2, 3\\)" \
+    "print one_two_three, indexes off"
 
 gdb_test "print e_one_two_three" \
-        "= \\(1, 2, 3\\)" \
-        "print e_one_two_three, indexes off"
+    "= \\(1, 2, 3\\)" \
+    "print e_one_two_three, indexes off"
 
 gdb_test "print r_two_three" \
-        "= \\(two => 2, 3\\)" \
-        "print r_two_three, indexes off"
+    "= \\(two => 2, 3\\)" \
+    "print r_two_three, indexes off"
 
 gdb_test "print u_one_two_three" \
-        "= \\(1, 2, 3\\)" \
-        "print u_one_two_three, indexes off"
+    "= \\(1, 2, 3\\)" \
+    "print u_one_two_three, indexes off"
 
 gdb_test "print p_one_two_three" \
-        "= \\(false, true, true\\)" \
-        "print p_one_two_three, indexes off"
+    "= \\(false, true, true\\)" \
+    "print p_one_two_three, indexes off"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print few_reps" \
-        "= \\(1, 2, 3, 3, 3, 3, 3, 4, 5\\)" \
-        "print few_reps, indexes off"
+    "= \\(1, 2, 3, 3, 3, 3, 3, 4, 5\\)" \
+    "print few_reps, indexes off"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print many_reps" \
-        "= \\(1, 2, 3 <repeats 12 times>, 4, 5\\)" \
-        "print many_reps, indexes off"
+    "= \\(1, 2, 3 <repeats 12 times>, 4, 5\\)" \
+    "print many_reps, indexes off"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print empty" \
-        "= \\(\\)" \
-        "print empty, indexes off"
+    "= \\(\\)" \
+    "print empty, indexes off"
 
 # Next, print all the arrays with the indexes
 
@@ -86,34 +86,34 @@ if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print one_two_three" \
-        "= \\(1 => 1, 2 => 2, 3 => 3\\)"
+    "= \\(1 => 1, 2 => 2, 3 => 3\\)"
 
 gdb_test "print e_one_two_three" \
-        "= \\(one => 1, two => 2, three => 3\\)"
+    "= \\(one => 1, two => 2, three => 3\\)"
 
 gdb_test "print r_two_three" \
-        "= \\(two => 2, three => 3\\)"
+    "= \\(two => 2, three => 3\\)"
 
 gdb_test "print u_one_two_three" \
-        "= \\(1 => 1, 2 => 2, 3 => 3\\)"
+    "= \\(1 => 1, 2 => 2, 3 => 3\\)"
 
 gdb_test "print p_one_two_three" \
-        "= \\(one => false, two => true, three => true\\)"
+    "= \\(one => false, two => true, three => true\\)"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print few_reps" \
-        "= \\(1 => 1, 2 => 2, 3 => 3, 4 => 3, 5 => 3, 6 => 3, 7 => 3, 8 => 4, 9 => 5\\)"
+    "= \\(1 => 1, 2 => 2, 3 => 3, 4 => 3, 5 => 3, 6 => 3, 7 => 3, 8 => 4, 9 => 5\\)"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print many_reps" \
-        "= \\(1 => 1, 2 => 2, 3 => 3 <repeats 12 times>, 15 => 4, 16 => 5\\)"
+    "= \\(1 => 1, 2 => 2, 3 => 3 <repeats 12 times>, 15 => 4, 16 => 5\\)"
 
 if {$old_gcc} {
     setup_xfail "*-*-*"
 }
 gdb_test "print empty" \
-        "= \\(\\)"
+    "= \\(\\)"
index ae2d622d21f91a7b0024009c5b00697b59e07629..e4742688955a0875c4ddd5b0543cc93ff93b584a 100644 (file)
@@ -22,11 +22,11 @@ clean_restart
 # Force the language to Ada, as this will not happen automatically
 # in this case (no test program).
 gdb_test_no_output "set lang ada" \
-        "changing the language to ada"
+    "changing the language to ada"
 
 gdb_test "print \$xxx := 1" \
-        "= 1" \
-        "set convenience variable \$xxx to 1"
+    "= 1" \
+    "set convenience variable \$xxx to 1"
 
 
 gdb_test "print \$xxx := @ + 23 + @" \
index 7deff379a61480aa99c370c72d21b7639dea12d2..574ca1dba8a49c92bfe6c48b09f5e60286d87a89 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile main_p324_051
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,10 +29,10 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/main_p324_051.adb]
 runto "main_p324_051.adb:$bp_location"
 
 gdb_test "print assign_arr_input.u2 :=(0.25,0.5,0.75)" \
-        " = \\(0\\.25, 0\\.5, 0\\.75\\)"
+    " = \\(0\\.25, 0\\.5, 0\\.75\\)"
 
 gdb_test "print assign_arr_input.u2 :=(0.25, others => 0.125)" \
-        " = \\(0\\.25, 0\\.125, 0\\.125\\)"
+    " = \\(0\\.25, 0\\.125, 0\\.125\\)"
 
 set line [gdb_get_line_number "STOP2" ${testdir}/target_wrapper.adb]
 gdb_breakpoint target_wrapper.adb:$line
index 63da1d557479f084a99a0ff942ecafc4d97abc76..13722d15ee52a345517d66011dc09fdb29f907f1 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile main
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 497a110ed10836db08b61ebb6589c5bb37cc7745..4d35f609da62d36a37aff160a23567759b822bbc 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,9 +29,9 @@ set test "ptype pck.data_flag"
 gdb_test_multiple "$test" $test {
     -re "type = \\(one, two, three\\).*$gdb_prompt $" {
        pass $test
-       }
+    }
     -re "type = \\(\\).*$gdb_prompt $" {
        # This is a known compiler problem with Stabs.
        xfail $test
-       }
+    }
 }
index 4cabffa4c29d8397211d6d45ad79dcbb53e032c8..e7d1391f0e1110bb2577a76769dd444e221c5846 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile "foo"
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -39,7 +39,7 @@ with_test_prefix "run" {
 }
 
 gdb_test "continue" \
-        ".*Breakpoint \[0-9\]+, foo\\.p \\(s=.*\\) at .*foo.adb:\[0-9\]+.*"
+    ".*Breakpoint \[0-9\]+, foo\\.p \\(s=.*\\) at .*foo.adb:\[0-9\]+.*"
 
 with_test_prefix "cont" {
     gdb_test "print s'first" " = 4"
index 5cf68f1ef2266b37f8f6f77f6f4b1e96a7431d4b..ba55d904016fa79c5df078c53ac1db7192cb30a0 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,17 +34,17 @@ runto "foo.adb:$bp_location"
 # report an error.  Try various weird combinations too.
 
 gdb_test "break *break_me'address TASK 2" \
-        "Garbage 'TASK 2' at end of command"
+    "Garbage 'TASK 2' at end of command"
 
 set test "break *break_me'address TASK Task TaSK 2"
 gdb_test_multiple "$test" $test {
     -re "Garbage 'TASK Task TaSK 2' at end of command\[\r\n\]+$gdb_prompt $" {
        pass $test
-       }
+    }
     -re "Garbage 'TaSK 2' at end of command\[\r\n\]+$gdb_prompt $" {
        kfail gdb/14111 "$test"
-       }
+    }
 }
 
 gdb_test "break *break_me'address TASK if" \
-        "Garbage 'TASK if' at end of command"
+    "Garbage 'TASK if' at end of command"
index 24fec8cfee0db544923ca804c53e7de929d15d8d..c8475f28d0a4b3a541542f84b37ed573a418aefb 100644 (file)
@@ -44,29 +44,29 @@ foreach_gnat_encoding scenario flags {all minimal} {
     set re_xfail "= \\(0 => 0 <repeats 25 times>\\)"
     set re_xfail2 "= \\(0 => 0 <repeats 24 times>, ($decimal)\\)"
     gdb_test_multiple "print bad" "" {
-       -re -wrap $re  {
-          pass $gdb_test_name
-       }
-       -re -wrap $re_xfail {
-          if { $have_xfail } {
-              # gcc/101643
-              setup_xfail *-*-*
-          }
-          fail $gdb_test_name
-       }
-       -re -wrap $re_xfail2 {
-          set last $expect_out(1,string)
-          if { $endian == "little" } {
-              set mask 0x0f
-          } else {
-              set mask 0xf0
-          }
-          if { $have_xfail && [string is integer $last] \
-                   && [expr ($last & $mask) == 0] } {
-              # gcc/101643
-              setup_xfail *-*-*
-          }
-          fail $gdb_test_name
-       }
+       -re -wrap $re  {
+           pass $gdb_test_name
+       }
+       -re -wrap $re_xfail {
+           if { $have_xfail } {
+               # gcc/101643
+               setup_xfail *-*-*
+           }
+           fail $gdb_test_name
+       }
+       -re -wrap $re_xfail2 {
+           set last $expect_out(1,string)
+           if { $endian == "little" } {
+               set mask 0x0f
+           } else {
+               set mask 0xf0
+           }
+           if { $have_xfail && [string is integer $last] \
+                    && [expr ($last & $mask) == 0] } {
+               # gcc/101643
+               setup_xfail *-*-*
+           }
+           fail $gdb_test_name
+       }
     }
 }
index 20d951cd5b1844d1ba47bae978732b5ecb145e9b..64925631c5b6171e46a4a847e1efb0d179e50978 100644 (file)
@@ -25,10 +25,10 @@ set any_addr "0x\[0-9a-zA-Z\]+"
 # Force the language to Ada, as this will not happen automatically
 # in this case (no test program).
 gdb_test_no_output "set lang ada" \
-        "changing the language to ada"
+    "changing the language to ada"
 
 gdb_test "print 1 = 2" \
-        "= false"
+    "= false"
 
 gdb_test "print 3 = 3" \
-        "= true"
+    "= true"
index 8c4a524e79bb0092d6ea02084d73683b1f3ddc1f..4dd4106649a04fafc78d6079a979777095e52010 100644 (file)
@@ -41,65 +41,65 @@ set options [list debug \
                 additional_flags=${cobject2} \
                 additional_flags=-margs]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $options] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto "foo_h731_021"]} {
-  return
+    return
 }
 
 # Verify that the current language is Ada.
 gdb_test "show lang" \
-        "\"auto; currently ada\"\\."
+    "\"auto; currently ada\"\\."
 
 # Before running to the C function (and thus switching out of Ada
 # mode), try printing the function using the "<...>" notation.
 gdb_test "p <MixedCaseFunc>" \
-        " = void" \
-        "p <MixedCaseFunc>, in Ada"
+    " = void" \
+    "p <MixedCaseFunc>, in Ada"
 
 gdb_test "p <NoDebugMixedCaseFunc>" \
-        " = {<text variable, no debug info>} $hex <NoDebugMixedCaseFunc>" \
-        "p <NoDebugMixedCaseFunc>, in Ada"
+    " = {<text variable, no debug info>} $hex <NoDebugMixedCaseFunc>" \
+    "p <NoDebugMixedCaseFunc>, in Ada"
 
 # Try inserting a breakpoint inside a C function. Because the function's
 # name has some uppercase letters, we need to use the "<...>" notation.
 # The purpose of this testcase is to verify that we can in fact do so
 # and that it inserts the breakpoint at the expected location.
 gdb_test "break <MixedCaseFunc>" \
-        "Breakpoint $decimal at $hex: file .*bar.c, line $decimal\\."
+    "Breakpoint $decimal at $hex: file .*bar.c, line $decimal\\."
 
 # Same, but this time on the function with no debug info.
 gdb_test "break <NoDebugMixedCaseFunc>" \
-        "Breakpoint $decimal at $hex"
+    "Breakpoint $decimal at $hex"
 
 # Resume the program's execution, verifying that it lands at the expected
 # location.
 gdb_test "continue" \
-        "Breakpoint $decimal, MixedCaseFunc \\(\\) at .*bar\\.c:$decimal.*"
+    "Breakpoint $decimal, MixedCaseFunc \\(\\) at .*bar\\.c:$decimal.*"
 
 # Try printing again using the "<...>" notation.  This shouldn't work
 # now, since the current frame is a C function.
 gdb_test "p <MixedCaseFunc>" \
-        "A syntax error in expression, near `<MixedCaseFunc>'\\." \
-        "p <MixedCaseFunc>, in C"
+    "A syntax error in expression, near `<MixedCaseFunc>'\\." \
+    "p <MixedCaseFunc>, in C"
 
 gdb_test "p <NoDebugMixedCaseFunc>" \
-        "A syntax error in expression, near `<NoDebugMixedCaseFunc>'\\." \
-        "p <NoDebugMixedCaseFunc>, in C"
+    "A syntax error in expression, near `<NoDebugMixedCaseFunc>'\\." \
+    "p <NoDebugMixedCaseFunc>, in C"
 
 set test "break <MixedCaseFunc>, in C"
 gdb_test_multiple "break <MixedCaseFunc>" $test {
-       -re "Function \"<MixedCaseFunc>\" not defined\\..*Make breakpoint pending on future shared library load.*y or .n.. $" {
-               gdb_test_no_output "n" $test
-       }
+    -re "Function \"<MixedCaseFunc>\" not defined\\..*Make breakpoint pending on future shared library load.*y or .n.. $" {
+       gdb_test_no_output "n" $test
+    }
 }
 
 set test "break <NoDebugMixedCaseFunc>, in C"
 gdb_test_multiple "break <NoDebugMixedCaseFunc>" $test {
-       -re "Function \"<NoDebugMixedCaseFunc>\" not defined\\..*Make breakpoint pending on future shared library load.*y or .n.. $" {
-               gdb_test_no_output "n" $test
-       }
+    -re "Function \"<NoDebugMixedCaseFunc>\" not defined\\..*Make breakpoint pending on future shared library load.*y or .n.. $" {
+       gdb_test_no_output "n" $test
+    }
 }
index f88aa13c0d7a8cc7aea8c5104cc51dae025a5874..3df69574969506ba6affa94a4dec6d6dcd856368 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 # Force GDB to convert the psymtab of pck.adb into a symtab.
 gdb_test "list pck.adb:1" \
-        "$decimal\[ \t\]+--  Copyright.*"
+    "$decimal\[ \t\]+--  Copyright.*"
 
 # Break on subprogram "Archive". There is an enumeral that's an
 # homonym, so verify that GDB doesn't provide the choice between
@@ -35,7 +35,7 @@ gdb_test "list pck.adb:1" \
 # Instead, it should insert the breakpoint on the function alone.
 
 gdb_test "break archive" \
-        "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
+    "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
 
 # Run the program. Make sure the program runs until it hits
 # the breakpoint and that the debugger does not unexpectedly ask
@@ -45,5 +45,5 @@ gdb_test "break archive" \
 
 gdb_run_cmd
 gdb_test "" \
-        "Breakpoint $decimal, pck\\.archive \\(\\).*" \
-        "run to pck.archive breakpoint"
+    "Breakpoint $decimal, pck\\.archive \\(\\).*" \
+    "run to pck.archive breakpoint"
index 57fc924fde3945b433c4d528c64294e86aef2b2c..a5ec03fff7499313a1834bfd5d2327803597b7c5 100644 (file)
@@ -26,9 +26,9 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 clean_restart ${testfile}
 
 gdb_test "break *bp_fun_addr'address" \
-        "Breakpoint \[0-9\]+ at.*: file .*bp_fun_addr.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at.*: file .*bp_fun_addr.adb, line \[0-9\]+."
 
 gdb_run_cmd
 gdb_test "" \
-        "Breakpoint $decimal, bp_fun_addr \\(\\).*" \
-        "run until breakpoint at bp_fun_addr'address"
+    "Breakpoint $decimal, bp_fun_addr \\(\\).*" \
+    "run until breakpoint at bp_fun_addr'address"
index 70e0eadf758b897082d6f5cebbdffea3aca87be3..145ce0a0213980b14c5fe7db7a2d359f185c1d3f 100644 (file)
@@ -20,21 +20,21 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-   return
+    return
 }
 
 # Check that inserting breakpoint on read_small inlined function inserts
 # 4 breakpoints (or possibly 5, including the read_small function itself).
 
 gdb_test "break read_small" \
-        "Breakpoint $decimal at $hex: read_small\\. \\(\[45\] locations\\)" \
-        "set breakpoint at read_small"
+    "Breakpoint $decimal at $hex: read_small\\. \\(\[45\] locations\\)" \
+    "set breakpoint at read_small"
 
 # We do not verify each breakpoint info, but use continue commands instead
 # to verify that we properly stop on each expected breakpoint.
@@ -50,5 +50,5 @@ for {set i 0} {$i < 4} {incr i} {
 }
 
 gdb_test "continue" \
-        "Continuing\\..*$inferior_exited_re.*" \
-        "continuing to program completion"
+    "Continuing\\..*$inferior_exited_re.*" \
+    "continuing to program completion"
index 34197198d59b76f9f79f5ad66be05ed1db8fcb31..6d2b686c62f834b40503b530e70207ee4989d72e 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 # Test inserting breakpoint on pck.my_global_variable.
@@ -33,7 +33,7 @@ clean_restart ${testfile}
 gdb_test_no_output "set breakpoint pending off" "disable pending breakpoints"
 
 gdb_test "break pck.my_global_variable" \
-        "Function \"pck\\.my_global_variable\" not defined\\."
+    "Function \"pck\\.my_global_variable\" not defined\\."
 
 
 # Test inserting breakpoint on pck.my_hidden_variable.
@@ -44,4 +44,4 @@ gdb_test_no_output "set breakpoint pending off" \
     "disable pending breakpoints after restart"
 
 gdb_test "break pck.my_hidden_variable" \
-        "Function \"pck\\.my_hidden_variable\" not defined\\."
+    "Function \"pck\\.my_hidden_variable\" not defined\\."
index cb99df8e36fb298bf9e7e5a778d44f4d8a14f59e..9fa1afdbf8bd95564d50fd076dc6a4f454cfebd1 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -28,12 +28,12 @@ clean_restart ${testfile}
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 
 gdb_test "break foo.adb:$bp_location if small_value > 20" \
-        "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
+    "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
 
 gdb_run_cmd
 gdb_test "" \
-        "Breakpoint $decimal, foo \\(\\).*" \
-        "run to breakpoint"
+    "Breakpoint $decimal, foo \\(\\).*" \
+    "run to breakpoint"
 
 # Verify that we stopped at the correct iteration.
 gdb_test "print small_value" " = 25"
index 0d679b300fdb5b1eb1674c21b37680d25c4c3283..2f6854b293cc58fdeaf9ff767163b05ba0d3842f 100644 (file)
@@ -20,16 +20,16 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 gdb_test "break nested_sub" \
-        "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
+    "Breakpoint $decimal at $hex: file .*foo.adb, line $decimal\\."
 
 gdb_test "break do_nothing" \
-        "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
+    "Breakpoint $decimal at $hex: file .*pck.adb, line $decimal\\."
 
 # Run the program. Make sure the program runs until it hits
 # the first breakpoint inside nested_sub.
index 597e227bf5567d209da37f3fc5e4e330cca87cda..b92a665ef862e6229bedfea78a8d52c1e53ab91e 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile proc
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
-  return
+    return
 }
 
 # Ada is case-insensitive, so both of these should work.
index f98add26842e029793e1bd9653c44211ea28aed9..8251bd555d58cde95ab54ed94066dd6b1bad4817 100644 (file)
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/reprod.adb]
 runto "reprod.adb:$bp_location"
 
 gdb_test "print broken" \
-        " = \\(len => 1, data => \\(\\(i => 1\\)\\)\\)"
+    " = \\(len => 1, data => \\(\\(i => 1\\)\\)\\)"
index 7426f13056c7bf410e9b991a76707a575d51b7b3..ff234b9aa99db4807c4e224a71c5e0c039552a79 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 # The xfail mentioned below triggers for the "after" print, but may not
index ffdf05ad7b06e3d154008caf6f97353ed4541e9f..c64db6f1fcf1faf7eabe119f72d2ad6cf9fbf99f 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile bla
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-   return
+    return
 }
 
 clean_restart ${testfile}
@@ -35,12 +35,12 @@ set sp "\[ \t\]*"
 #  - continue, the program exits.
 
 if {![runto_main]} {
-   return
+    return
 }
 
 gdb_test "catch assert if Global_Var = 2" \
-        "Catchpoint $decimal: failed Ada assertions" \
-        "insert catchpoint on failed assertions with condition"
+    "Catchpoint $decimal: failed Ada assertions" \
+    "insert catchpoint on failed assertions with condition"
 
 # Check that condition is stored and properly displayed.
 
@@ -50,11 +50,11 @@ gdb_test "info breakpoint" $exp_bp "Check catch assertions with condition"
 set bp_location [gdb_get_line_number "STOP" ${testdir}/bla.adb]
 
 set catchpoint_msg \
-  "Catchpoint $decimal, failed assertion at $hex in bla \\\(\\\).*at .*bla.adb:$bp_location"
+    "Catchpoint $decimal, failed assertion at $hex in bla \\\(\\\).*at .*bla.adb:$bp_location"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$catchpoint_msg$eol.*STOP" \
-        "continuing to expected failed assertion"
+    "Continuing\\.$eol$eol$catchpoint_msg$eol.*STOP" \
+    "continuing to expected failed assertion"
 
 gdb_test "continue" \
-        "Continuing\\..*$inferior_exited_re.*" \
-        "continuing to program completion"
+    "Continuing\\..*$inferior_exited_re.*" \
+    "continuing to program completion"
index 44cf982fd447ab597de5d6d42251de0f58025b30..0051aa3468630dd5c2cdefca3380719b0dd39c3b 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,14 +34,14 @@ set sp "\[ \t\]*"
 
 set info_break_header "Num${sp}Type${sp}Disp${sp}Enb${sp}Address${sp}What"
 set catch_exception_info \
-  "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}all Ada exceptions"
+    "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}all Ada exceptions"
 
 ####################################
 # 1. Try catching all exceptions.  #
 ####################################
 
 if {![runto_main]} {
-   return
+    return
 }
 
 gdb_test "catch exception" \
@@ -49,20 +49,20 @@ gdb_test "catch exception" \
     "insert catchpoint on all Ada exceptions"
 
 gdb_test "info break" \
-        "$info_break_header$eol.*$catch_exception_info" \
-        "info break, catch all Ada exceptions"
+    "$info_break_header$eol.*$catch_exception_info" \
+    "info break, catch all Ada exceptions"
 
 set catchpoint_msg \
-  "Catchpoint $any_nb, CONSTRAINT_ERROR (\\\(ignore C_E\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
+    "Catchpoint $any_nb, CONSTRAINT_ERROR (\\\(ignore C_E\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT1" \
-        "continuing to first exception"
+    "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT1" \
+    "continuing to first exception"
 
 set catchpoint_msg \
-  "Catchpoint $any_nb, PROGRAM_ERROR (\\\(foo\\.adb:$decimal explicit raise\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
+    "Catchpoint $any_nb, PROGRAM_ERROR (\\\(foo\\.adb:$decimal explicit raise\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT2" \
-        "continuing to second exception"
+    "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT2" \
+    "continuing to second exception"
 
 ################################################
 # 2. Try catching only some of the exceptions. #
@@ -79,53 +79,53 @@ gdb_test "continue" \
 #  - continue, the program exits.
 
 if {![runto_main]} {
-   return
+    return
 }
 
 gdb_test "catch exception Program_Error" \
-        "Catchpoint $any_nb: \`Program_Error' Ada exception" \
-        "insert catchpoint on Program_Error"
+    "Catchpoint $any_nb: \`Program_Error' Ada exception" \
+    "insert catchpoint on Program_Error"
 
 gdb_test "catch assert" \
-        "Catchpoint $any_nb: failed Ada assertions" \
-        "insert catchpoint on failed assertions"
+    "Catchpoint $any_nb: failed Ada assertions" \
+    "insert catchpoint on failed assertions"
 
 gdb_test "catch exception unhandled" \
-        "Catchpoint $any_nb: unhandled Ada exceptions" \
-        "insert catchpoint on unhandled exceptions"
+    "Catchpoint $any_nb: unhandled Ada exceptions" \
+    "insert catchpoint on unhandled exceptions"
 
 set catch_exception_entry \
-  "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}\`Program_Error' Ada exception"
+    "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}\`Program_Error' Ada exception"
 set catch_assert_entry \
-  "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}failed Ada assertions"
+    "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}failed Ada assertions"
 set catch_unhandled_entry \
-  "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}unhandled Ada exceptions"
+    "$any_nb${sp}catchpoint${sp}keep${sp}y${sp}unhandled Ada exceptions"
 
 gdb_test "info break" \
-        "$info_break_header$eol.*$catch_exception_entry$eol$catch_assert_entry$eol$catch_unhandled_entry" \
-        "info break, second run"
+    "$info_break_header$eol.*$catch_exception_entry$eol$catch_assert_entry$eol$catch_unhandled_entry" \
+    "info break, second run"
 
 set catchpoint_msg \
-  "Catchpoint $any_nb, PROGRAM_ERROR (\\\(foo.adb:$decimal explicit raise\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
+    "Catchpoint $any_nb, PROGRAM_ERROR (\\\(foo.adb:$decimal explicit raise\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT2" \
-        "continuing to Program_Error exception"
+    "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT2" \
+    "continuing to Program_Error exception"
 
 set catchpoint_msg \
-  "Catchpoint $any_nb, failed assertion at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
+    "Catchpoint $any_nb, failed assertion at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT3" \
-        "continuing to failed assertion"
+    "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT3" \
+    "continuing to failed assertion"
 
 set catchpoint_msg \
-  "Catchpoint $any_nb, unhandled CONSTRAINT_ERROR at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
+    "Catchpoint $any_nb, unhandled CONSTRAINT_ERROR at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT4" \
-        "continuing to unhandled exception"
+    "Continuing\\.$eol$eol$catchpoint_msg$eol.*SPOT4" \
+    "continuing to unhandled exception"
 
 gdb_test "continue" \
-        "Continuing\\..*$inferior_exited_re.*" \
-        "continuing to program completion"
+    "Continuing\\..*$inferior_exited_re.*" \
+    "continuing to program completion"
 
 #################################
 # 3. Try temporary catchpoints. #
@@ -139,17 +139,17 @@ gdb_test "continue" \
 #     the program.
 
 if {![runto_main]} {
-   return
+    return
 }
 
 gdb_test "tcatch exception" \
-        "Temporary catchpoint $any_nb: all Ada exceptions"
+    "Temporary catchpoint $any_nb: all Ada exceptions"
 
 set temp_catchpoint_msg \
-  "Temporary catchpoint $any_nb, CONSTRAINT_ERROR (\\\(.*\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
+    "Temporary catchpoint $any_nb, CONSTRAINT_ERROR (\\\(.*\\\) )?at $any_addr in foo \\\(\\\).*at .*foo.adb:$any_nb"
 gdb_test "continue" \
-        "Continuing\\.$eol$eol$temp_catchpoint_msg$eol.*SPOT1" \
-        "continuing to temporary catchpoint"
+    "Continuing\\.$eol$eol$temp_catchpoint_msg$eol.*SPOT1" \
+    "continuing to temporary catchpoint"
 
 with_test_prefix "temporary catchpoint" {
     gdb_test "continue" \
index 2f6050ba57234f2fb6398affab8ecfde5ced81d7..7e3e9450214185a8e196643ae632d77f3f1efdfb 100644 (file)
@@ -66,7 +66,7 @@ clean_restart ${testfile}
 gdb_load_shlib $sofile
 
 if {![runto_main]} {
-   return
+    return
 }
 
 gdb_test "catch exception some_kind_of_error" \
index ef81e8f68556c1c6bde7ec0ecadf8e3143cbe389..78e2545cec62b27991c4e330c04eef67edabead8 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 73154ef162d0495ba897a8ce844ad791a46cb35f..f2c4ec40ef06ee681ee9322e85d9a3a7f348f992 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 164722e55469c264da0670209c1f630111d2477f..6bba61c1f78bf86199110c282daf70d5ad7eadee 100644 (file)
@@ -21,7 +21,7 @@ standard_ada_testfile foo
 
 set flags [list debug additional_flags=-gnatW8]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 53d4225fbf29bd04f50ab9df2b3e2d5d3d66950a..5ab33d82435d086a8ec49011dbaa60df07414b25 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,21 +34,21 @@ runto "foo.adb:$bp_location"
 # the function call.
 
 gdb_test "print procedure_result" \
-        "= 32 ' '"  \
-        "print procedure_result before calling same"
+    "= 32 ' '"  \
+    "print procedure_result before calling same"
 
 gdb_test "call same (first)" \
-        "" \
-        "call same"
+    "" \
+    "call same"
 
 gdb_test "print procedure_result" \
-        "= 97 'a'"  \
-        "print procedure_result after calling same"
+    "= 97 'a'"  \
+    "print procedure_result after calling same"
 
 gdb_test "call next (first)" \
-        "= 98 'b'" \
-        "call next"
+    "= 98 'b'" \
+    "call next"
 
 gdb_test "print procedure_result" \
-        "= 98 'b'"  \
-        "print procedure_result after calling next"
+    "= 98 'b'"  \
+    "print procedure_result after calling next"
index 2f2abb05e3c8d74257811420c75c7e04f7bde7d9..8b88591916f240b35397a23ae1b989b77a42c469 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -50,7 +50,7 @@ proc test_gdb_complete { expr expected_output {msg ""} } {
        set msg $cmd
     }
     gdb_test "complete p $expr" \
-            "$expected_output" $msg
+       "$expected_output" $msg
 }
 
 # A convenience function that verifies that the "complete EXPR" command
@@ -63,12 +63,12 @@ proc test_gdb_no_completion { expr } {
 # Try a global variable, only one match should be found:
 
 test_gdb_complete "my_glob" \
-                 "p my_global_variable"
+    "p my_global_variable"
 
 # A global variable, inside a nested package:
 
 test_gdb_complete "insi" \
-                 "p inside_variable"
+    "p inside_variable"
 
 # A global variable inside a nested package, but only giving part of
 # the fully qualified name (top level package name missing):
@@ -77,16 +77,16 @@ test_gdb_no_completion "inner.insi"
 
 # An incomplete nested package name, were lies a single symbol:
 test_gdb_complete "pck.inne" \
-                 "p pck.inner.inside_variable" \
-                 "complete nested package name"
+    "p pck.inner.inside_variable" \
+    "complete nested package name"
 
 # A fully qualified symbol name, mangled...
 test_gdb_complete "pck__inner__ins" \
-                 "p pck__inner__inside_variable"
+    "p pck__inner__inside_variable"
 
 # A fully qualified symbol name...
 test_gdb_complete "pck.inner.ins" \
-                 "p pck.inner.inside_variable"
+    "p pck.inner.inside_variable"
 
 # Make sure that "inside" is not returned as a possible completion
 # for "side"...
@@ -98,7 +98,7 @@ test_gdb_no_completion "exported"
 
 # check the "<...>" notation.
 test_gdb_complete "<Exported" \
-                 "p <Exported_Capitalized>"
+    "p <Exported_Capitalized>"
 
 # While at it, make sure we can print the symbol too, using the '<'
 # notation.
@@ -112,16 +112,16 @@ gdb_test "p exported_capitalized" \
 
 # A global symbol, created by the binder, that starts with __gnat...
 test_gdb_complete "__gnat_ada_main_progra" \
-                 "p __gnat_ada_main_program_name"
+    "p __gnat_ada_main_program_name"
 
 # A global symbol, created by the binder, that starts with __gnat,
 # and using the '<' notation.
 test_gdb_complete "<__gnat_ada_main_prog" \
-                 "p <__gnat_ada_main_program_name>"
+    "p <__gnat_ada_main_program_name>"
 
 # A local variable
 test_gdb_complete "some" \
-                 "p some_local_variable"
+    "p some_local_variable"
 
 # A local variable variable, but in a different procedure. No match
 # should be returned.
@@ -132,7 +132,7 @@ test_gdb_no_completion "pck.ins"
 
 # A fully qualified variable name that does exist...
 test_gdb_complete "pck.my" \
-                 "p pck.my_global_variable"
+    "p pck.my_global_variable"
 
 # A fully qualified package name
 test_gdb_complete "pck.inner" \
@@ -141,28 +141,28 @@ test_gdb_complete "pck.inner" \
 
 # A fully qualified package name, with a dot at the end
 test_gdb_complete "pck.inner." \
-                 "p pck.inner.inside_variable"
+    "p pck.inner.inside_variable"
 
 # Two matches, from the global scope:
 test_gdb_complete "local_ident" \
-                 [multi_line "p local_identical_one" \
-                             "p local_identical_two" ]
+    [multi_line "p local_identical_one" \
+        "p local_identical_two" ]
 
 # Two matches, from the global scope, but using fully qualified names:
 test_gdb_complete "pck.local_ident" \
-                 [multi_line "p pck.local_identical_one" \
-                             "p pck.local_identical_two" ]
+    [multi_line "p pck.local_identical_one" \
+        "p pck.local_identical_two" ]
 
 # Two matches, from the global scope, but using mangled fully qualified
 # names:
 test_gdb_complete "pck__local_ident" \
-                 [multi_line "p pck__local_identical_one" \
-                             "p pck__local_identical_two" ]
+    [multi_line "p pck__local_identical_one" \
+        "p pck__local_identical_two" ]
 
 # Two matches, one from the global scope, the other from the local scope:
 test_gdb_complete "external_ident" \
-                 [multi_line "p external_identical_one" \
-                             "p external_identical_two" ]
+    [multi_line "p external_identical_one" \
+        "p external_identical_two" ]
 
 # Complete on the name of package.
 test_gdb_complete "pck" \
@@ -198,7 +198,7 @@ test_gdb_complete "pck." \
 
 # Complete a mangled symbol name, but using the '<...>' notation.
 test_gdb_complete "<pck__my" \
-                 "p <pck__my_global_variable>"
+    "p <pck__my_global_variable>"
 
 # Very simple completion, but using the interactive form, this time.
 # The verification we are trying to make involves the event loop,
@@ -224,12 +224,12 @@ if { [readline_is_used] } {
 # which users can select a specific function.  This should not happen during
 # completion, though.
 test_gdb_complete "ambig" \
-                 [multi_line "p ambiguous_func" \
-                             "p ambiguous_proc" ]
+    [multi_line "p ambiguous_func" \
+        "p ambiguous_proc" ]
 test_gdb_complete "ambiguous_f" \
-                 "p ambiguous_func"
+    "p ambiguous_func"
 test_gdb_complete "ambiguous_func" \
-                 "p ambiguous_func"
+    "p ambiguous_func"
 
 # Perform a test intended to verify the behavior where the number
 # of possible completions is very large.  The goal is not to verify
index 994b223535746d2b649755dcda4299f02ea6d6bc..017ab2eb784ac681a579d610a890246dcbf0a5fa 100644 (file)
@@ -25,7 +25,7 @@ set cobject [standard_output_file ${cfile}.o]
 
 gdb_compile "${csrcfile}" "${cobject}" object [list debug]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -33,7 +33,7 @@ clean_restart ${testfile}
 # Run to c_function an verify that the language automatically gets set to C.
 runto c_function
 gdb_test "show lang" \
-        "The current source language is \"auto; currently c\"\\."
+    "The current source language is \"auto; currently c\"\\."
 
 # Now, insert a breakpoint inside an Ada unit, using a condition written
 # in Ada. Even though the current language is "auto; currently c", we
@@ -41,11 +41,11 @@ gdb_test "show lang" \
 # current language mode is auto, and the breakpoint is inside Ada code.
 set bp_location [gdb_get_line_number "STOP" ${testdir}/mixed.adb]
 gdb_test "break mixed.adb:${bp_location} if light = green" \
-        "Breakpoint \[0-9\]* at .*: file (.*/)?mixed.adb, line \[0-9\]*\\."
+    "Breakpoint \[0-9\]* at .*: file (.*/)?mixed.adb, line \[0-9\]*\\."
 
 # Now, continue until we hit the breakpoint.  If the condition is
 # evaluated correctly, the first hit will be ignored, and the debugger
 # will stop at the second hit only, when the "light" argument is equal
 # to green.
 gdb_test "continue" \
-        "Breakpoint \[0-9\]*, mixed\\.break_me \\(light=green\\) at .*"
+    "Breakpoint \[0-9\]*, mixed\\.break_me \\(light=green\\) at .*"
index eeb3b1d147ca944708a32090b33de6b49e1c8a7d..b6652e837bf462f69b7c76b0c126b939ba30d312 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile pb16_063
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -28,7 +28,7 @@ clean_restart ${testfile}
 set bp_location [gdb_get_line_number "BREAK" "$testdir/pck.adb"]
 
 if {![runto pck.adb:$bp_location]} {
-  return
+    return
 }
 
 set val ""
index a1b7ab21b799c46257f683e907389716622c37f6..9e8e8a676a81d44fd176091ebe13a56dd6c649ff 100644 (file)
@@ -23,7 +23,7 @@ standard_ada_testfile x
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
         {debug additional_flags=-gnatDG}] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index cc7bb6435a7ec8460e6a99590f813260db9b0d4f..e4fb834fa506bda7697b917598b64434eb393a77 100644 (file)
@@ -20,18 +20,18 @@ require allow_ada_tests
 standard_ada_testfile foo_n612_026
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_n612_026.adb]
 if {![runto "foo_n612_026.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print r" \
-        " = \\(n => 10, a => \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)\\)"
+    " = \\(n => 10, a => \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)\\)"
 
 gdb_test "print r.a" \
-        " = \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)"
+    " = \\(10, 20, 30, 40, 50, 60, 70, 80, 90, 100\\)"
index 5d49dbcf1b45a74454ab359d3178b26b48c51240..cfc56763be523bf301e642fde41c3ae293b4ad49 100644 (file)
@@ -29,7 +29,7 @@ clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/main.adb]
 if {![runto "main.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test_no_output "set print array-indexes on"
index b5b0f4ab813e454f7d5e44d7ce54c9f9437eb881..58d1ae96afb022d3e6b0af19db7292117853012d 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print addr.all" " = 123"
index f8180b8ffbebce56be6fb1bd8b3fba402a762b61..f6f1dfdda108326dd0cd4cd9b50144597282f5c6 100644 (file)
@@ -33,4 +33,4 @@ runto "foo.adb:$bp_location"
 gdb_test_no_output "maintenance set ada ignore-descriptive-types"
 
 gdb_test "ptype array_type" \
-        " = array \\(5 \\.\\. 10\\) of natural" \
+    " = array \\(5 \\.\\. 10\\) of natural" \
index 475a96b5ef6aa8af1f1cec66e020ed6082698c34..e53ed3182d99c0026b181d9af9611b6fe883c07f 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "BREAK" ${testdir}/pack.adb]
 if {![runto "pack.adb:$bp_location"]} {
-  return
+    return
 }
 
 set eol "\r\n"
index 31df509efd249e375f40cd4a1a674d34e5417d21..3febb39a627c82c0f5da7e62db7944cf881a4bbf 100644 (file)
@@ -20,27 +20,27 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print A1(1)" \
-        "\\(i => 0, s => \"\"\\)"
+    "\\(i => 0, s => \"\"\\)"
 
 gdb_test "print A1(2)" \
-        "\\(i => 1, s => \"A\"\\)"
+    "\\(i => 1, s => \"A\"\\)"
 
 gdb_test "print A1(3)" \
-        "\\(i => 2, s => \"AB\"\\)"
+    "\\(i => 2, s => \"AB\"\\)"
 
 gdb_test "print A1(1..3)" \
-        "\\(\\(i => 0, s => \"\"\\), \\(i => 1, s => \"A\"\\), \\(i => 2, s => \"AB\"\\)\\)"
+    "\\(\\(i => 0, s => \"\"\\), \\(i => 1, s => \"A\"\\), \\(i => 2, s => \"AB\"\\)\\)"
 
 # Test the use of the "repeat" operator (@).
 #
@@ -59,4 +59,4 @@ gdb_test "print A1(1..3)" \
 # of the array).
 
 gdb_test "print a1(1)@3" \
-        " = \\(\\(i => 0, s => \"\"\\), \\(i => -?$decimal, s => .*\\), \\(i => -?$decimal, s => .*\\)\\)"
+    " = \\(\\(i => 0, s => \"\"\\), \\(i => -?$decimal, s => .*\\), \\(i => -?$decimal, s => .*\\)\\)"
index 8b5a0d7428782b18f432e13813e5e187d0fcfd02..d521a1ba1ea435736a09af143de9c88221a3429a 100644 (file)
@@ -22,7 +22,7 @@ require gnat_runtime_has_debug_info
 standard_ada_testfile main
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug additional_flags=-gnat05}] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 151f14bb59c8fe774bb3856121d931f110f206a3..80a57fbf13f7fb5881ea5becfa97ecd2118ce986 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile enums_overload_main
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index c071d5811fea98063f70784ec1e21624a95bca09..763c98ef2b826edfe5abd5f1759d057c3e631b2b 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -32,16 +32,16 @@ set sp "\[ \t\]*"
 
 set when "when"
 set catchpoint_constraint_error_msg \
-  "Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Constraint_Error =>"
+    "Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Constraint_Error =>"
 
 set catchpoint_program_error_msg \
-  "Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Program_Error =>"
+    "Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Program_Error =>"
 
 set catchpoint_storage_error_msg \
-  "Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Storage_Error =>"
+    "Catchpoint $decimal, exception at $hex in foo \\\(\\\).*at .*foo.adb:$decimal$eol$decimal$sp$when Storage_Error =>"
 
 if {![runto_main]} {
-   return
+    return
 }
 
 ############################################
@@ -70,7 +70,7 @@ gdb_test "continue" \
     "continuing and stopping in Storage_Error exception handlers"
 
 gdb_test_no_output "delete 2" \
-                  "delete catchpoint on all Ada exceptions handlers"
+    "delete catchpoint on all Ada exceptions handlers"
 
 ##################################################
 # 2. Try catching some named exception handlers. #
@@ -79,8 +79,8 @@ gdb_test_no_output "delete 2" \
 # Insert a catchpoint on Program_Error Ada exception handlers.
 
 gdb_test "catch handlers Program_Error" \
-        "Catchpoint $decimal: `Program_Error' Ada exception handlers" \
-        "insert catchpoint on Program_Error Ada exception handlers"
+    "Catchpoint $decimal: `Program_Error' Ada exception handlers" \
+    "insert catchpoint on Program_Error Ada exception handlers"
 
 # Continue, we should not stop at ABORT_SIGNAL but at Program_Error one.
 
@@ -95,8 +95,8 @@ gdb_test_no_output \
 # Insert a catchpoint on Storage_Error Ada exception handlers.
 
 gdb_test "catch handlers Storage_Error" \
-        "Catchpoint $decimal: `Storage_Error' Ada exception handlers" \
-        "insert catchpoint on Storage_Error Ada exception handlers"
+    "Catchpoint $decimal: `Storage_Error' Ada exception handlers" \
+    "insert catchpoint on Storage_Error Ada exception handlers"
 
 # Continue, we should stop at Storage_Error handlers.
 
@@ -115,13 +115,13 @@ gdb_test_no_output \
 # Insert a catchpoint on all Ada exceptions handlers with condition.
 
 gdb_test "catch handlers if Global_Var = 2" \
-        "Catchpoint $decimal: all Ada exceptions handlers" \
-        "insert catchpoint on all Ada exception handlers with condition"
+    "Catchpoint $decimal: all Ada exceptions handlers" \
+    "insert catchpoint on all Ada exception handlers with condition"
 
 # Check that condition is stored and properly displayed.
 
 gdb_test "info breakpoint" "stop only if Global_Var = 2" \
-        "Check catch handlers with condition"
+    "Check catch handlers with condition"
 
 # Continue, we should not stop at ABORT_SIGNAL but at Program_Error one.
 
@@ -154,5 +154,5 @@ gdb_test "continue" \
 # Continue, the program should exit properly.
 
 gdb_test "continue" \
-        "Continuing\\..*$inferior_exited_re.*" \
-        "continuing to program completion"
+    "Continuing\\..*$inferior_exited_re.*" \
+    "continuing to program completion"
index 42cd5c08f6dab326da2cdf9c5c883e1e131415a4..1266b5fd849895f01b0fd3aa0ac808867efd5ea6 100644 (file)
@@ -56,8 +56,8 @@ if { [gdb_start_cmd] < 0 } {
 }
 
 gdb_test "" \
-        "first \\(\\) at .*first.adb.*" \
-        "start first"
+    "first \\(\\) at .*first.adb.*" \
+    "start first"
 
 # Restore first executable to its original name, and move
 # second executable into its place.  Ensure that the new
@@ -78,8 +78,8 @@ if { [gdb_start_cmd] < 0 } {
     fail "start second"
 } else {
     gdb_test "" \
-            "second \\(\\) at .*second.adb.*" \
-            "start second"
+       "second \\(\\) at .*second.adb.*" \
+       "start second"
 }
 
 # Try again, this time with just changing the file time of first.
index 2398f10d6f1961bf8fac43c27b1ead8719929c96..b35874244099afdb2975c620fb33951cdb1f0428 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -36,32 +36,32 @@ gdb_run_cmd
 gdb_test "" "Breakpoint $decimal, foo \\(\\).*" \
     "run to foo"
 gdb_test "continue" \
-        "Continuing\\..*Breakpoint $decimal, foo \\(\\).*"
+    "Continuing\\..*Breakpoint $decimal, foo \\(\\).*"
 
 # Make sure that "thread" may be used as a variable without being mistaken
 # for an expression delimiter.
 gdb_test "print thread" \
-        "= 1" \
-        "print variable 'thread'"
+    "= 1" \
+    "print variable 'thread'"
 
 gdb_test_no_output "delete 1"
 
 gdb_test "watch thread" \
-        ".*atchpoint \[0-9\]+: thread" \
-        "set plain watchpoint on variable 'thread'"
+    ".*atchpoint \[0-9\]+: thread" \
+    "set plain watchpoint on variable 'thread'"
 
 # Make sure that 'if' when followed by an expression beginning
 # with 'i' works.
 gdb_test "watch thread if i = 2" \
-        ".*atchpoint \[0-9\]+: thread" \
-        "set conditional watchpoint."
+    ".*atchpoint \[0-9\]+: thread" \
+    "set conditional watchpoint."
 
 gdb_test "info break" \
-        ".*${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}stop only if i = 2" \
-        "check that watchpoint is set correctly."
+    ".*${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}.*atchpoint${ws}keep${ws}y${ws}thread${ws}stop only if i = 2" \
+    "check that watchpoint is set correctly."
 
 # Check for right error when using both 'if' and 'thread' clauses.
 
 gdb_test "break foo.adb:$bp_location if thread = 10 thread 999" \
-        ".*Unknown thread 999\\." \
-        "combination of 'if' and 'thread' delimiters."
+    ".*Unknown thread 999\\." \
+    "combination of 'if' and 'thread' delimiters."
index 85c5550909c98394d48b3b3e29584b1a0a632970..3402a5c7dc3c5426483c5599dcd4c4def52e78f1 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile expr_r821_013
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 0f246be007114ffedd740ea66b39a7ad94c40ac0..aef904676e27bea26dfa6cbc15970d896787beb3 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index d75545e48252811fc7f364702e9cb4aa47f9c108..c1c43bef10bf04afc90ff5e513d3fbed1adaeba6 100644 (file)
@@ -24,7 +24,7 @@ if {[prepare_for_testing "failed to prepare" ${testfile} ${srcfile}]} {
 # For riscv64-linux, we need to run to main, or the_array.p_array will still
 # be nullptr.
 if {![runto "main"]} {
-  return
+    return
 }
 
 # The test case is written in C, because it was easy to make the
index 391707ab069964bf6a88c98a014ccba944b73054..d648295dfb09e07edd6527d536e418a3006f3733 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo_o525_013
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -33,8 +33,8 @@ runto "bar.f"
 # to display, depending on the ABI.  The objective of the test is
 # to verify that we don't crash, so keep the expected output simple...
 gdb_test "finish" \
-        ".*Value returned.*"
+    ".*Value returned.*"
 
 # Verify that GDB is still alive...
 gdb_test "print 1" \
-        "= 1"
+    "= 1"
index b2caca1e164026a9187028f5dde7a9627a34aebd..24eb103b6bc2adb6b0048255ecdc2d490b3241a0 100644 (file)
@@ -22,11 +22,11 @@ standard_ada_testfile p
 set flags {debug}
 
 if {[ada_fvar_tracking]} {
-  lappend flags "additional_flags=-fvar-tracking"
+    lappend flags "additional_flags=-fvar-tracking"
 }
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 2e909db29ec991b7c2639baee8579d547cb774a9..51c056a91064449d98625709740b6ce7671718c4 100644 (file)
@@ -29,7 +29,7 @@ if { [ada_fvar_tracking] } {
 }
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $opts] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -40,7 +40,7 @@ set value [string_to_regexp "= (defined => true, payload => true)"]
 # With some ABIs the return value cannot be determined.  Accept this,
 # or the correct result.
 gdb_test "finish" \
-        "Value returned .*($value|Cannot determine contents)"
+    "Value returned .*($value|Cannot determine contents)"
 
 # Test that an inferior call yields the correct result.
 gdb_test "print pck.get(True)" $value
index 2c3aaa6c2c2063f61615d32e132e440fa9bf0779..6bcb157b3c9daba2b943d01cb61263ddf3be7328 100644 (file)
@@ -23,7 +23,7 @@ foreach_gnat_encoding gnat_encodings flags {all minimal} {
     lappend flags debug
 
     if {[gdb_compile_ada "${srcfile}" "${binfile}-${gnat_encodings}" executable $flags] != "" } {
-      return
+       return
     }
 
     clean_restart ${testfile}-${gnat_encodings}
@@ -32,16 +32,16 @@ foreach_gnat_encoding gnat_encodings flags {all minimal} {
     runto "fixed.adb:$bp_location"
 
     gdb_test "print My_Var > 10.0" \
-            "= true"
+       "= true"
 
     gdb_test "print My_Var > 20.0" \
-            "= false"
+       "= false"
 
     # Do the same, but with integer values.
 
     gdb_test "print My_Var > 10" \
-            "= true"
+       "= true"
 
     gdb_test "print My_Var > 20" \
-            "= false"
+       "= false"
 }
index b7e20290b953c95c9220f207b9e18e4ed093e3a2..abe4e1f8d6d13fa6cdf7308e705532be378ee227 100644 (file)
@@ -29,10 +29,10 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/fixed_points_function.adb
 runto "fixed_points_function.adb:$bp_location"
 
 gdb_test "print call_fp1(1)" \
-        " = 1"
+    " = 1"
 
 gdb_test "print call_fp1(0.5)" \
-        " = 0.5"
+    " = 0.5"
 
 gdb_test "print call_fp1(-0.5)" \
-        " = -0.5"
+    " = -0.5"
index e6be564825a7b9730f48b7f5484e55363d36038d..c952ab721a69809c4ebb847762432a8e1be91ac7 100644 (file)
@@ -30,12 +30,12 @@ runto "foo.adb:$bp_location"
 
 gdb_test_no_output "call set_float(2.0)"
 gdb_test "print global_float" \
-        " = 2\\.0"
+    " = 2\\.0"
 
 gdb_test_no_output "call set_double(1, 3.0)"
 gdb_test "print global_double" \
-        " = 3\\.0"
+    " = 3\\.0"
 
 gdb_test_no_output "call set_long_double(1, global_small_struct, 4.0)"
 gdb_test "print global_long_double" \
-        " = 4\\.0"
+    " = 4\\.0"
index 12ae6172819b5f357fce43763f65c02eb079efca..5f38a1900e63d3a5dd135f6cf4bfc61324c95f37 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,14 +31,14 @@ set eol "\r\n"
 set sp "\[ \t\]*"
 
 if {![runto break_me]} {
-  return
+    return
 }
 
 # First, print all the arrays without indexes
 
 gdb_test_no_output "set print frame-arguments scalars" \
-        "set print frame-arguments scalars"
+    "set print frame-arguments scalars"
 
 gdb_test "frame 1" \
-        "#1$sp$any_addr in pck.call_me \\(int=1, flt=2.0, bln=true, ary=\\.\\.\\., chr=106 'j', sad=\\(system.address\\) $any_addr, rec=\\.\\.\\.\\).*" \
-        "display frame 1 with frame-arguments set to scalars"
+    "#1$sp$any_addr in pck.call_me \\(int=1, flt=2.0, bln=true, ary=\\.\\.\\., chr=106 'j', sad=\\(system.address\\) $any_addr, rec=\\.\\.\\.\\).*" \
+    "display frame 1 with frame-arguments set to scalars"
index 270653f80d48e9db62e3e35e96c372e66e3052b6..0d991663f517ba80d5b9975b472cb50345a724d6 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 # Note: We restart the debugger before setting each breakpoint, because
@@ -31,7 +31,7 @@ clean_restart ${testfile}
 # Break on "pck.hello" rather than just "hello" to make sure we trigger
 # the non-wild symbol lookup.
 gdb_test "break pck.hello" \
-        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
 
 # Do the same, but this time using a linespec where the user also
 # provided a filename.
@@ -39,7 +39,7 @@ gdb_test "break pck.hello" \
 clean_restart ${testfile}
 
 gdb_test "break pck.adb:pck.hello" \
-        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
 
 # Same scenarios as above, but with a function name that is spelled
 # with upper-case letters.
@@ -47,9 +47,9 @@ gdb_test "break pck.adb:pck.hello" \
 clean_restart ${testfile}
 
 gdb_test "break Pck.Hello" \
-        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
 
 clean_restart ${testfile}
 
 gdb_test "break pck.adb:Pck.Hello" \
-        "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at 0x\[0-9a-f\]+: file .*pck.adb, line \[0-9\]+."
index d3c5d19f52a4c968eda7b1fb564c11cf7c12cd8e..e7c7790c5c038689fa2aa2af99bcbb30ee932a94 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,4 +29,4 @@ clean_restart ${testfile}
 # the inferior is *not* running (no frame).
 
 gdb_test "print foo'address" \
-        "= .* 0x\[0-9a-zA-Z\]+ <foo>"
+    "= .* 0x\[0-9a-zA-Z\]+ <foo>"
index a9b03292368ac3432225d07aee32c1c6eb089234..2d73202ac1825809fba452739632bd42c2aedc0b 100644 (file)
@@ -20,13 +20,13 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-  return
+    return
 }
 
 # Some variables used to simplify the maintenance of some of
@@ -36,9 +36,9 @@ set any_addr "0x\[0-9a-zA-Z\]+"
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 gdb_test "break foo.adb:$bp_location" \
-        "Breakpoint $any_nb at $any_addr: file .*foo.adb, line $any_nb." \
-        "insert breakpoint inside foo.call_me"
+    "Breakpoint $any_nb at $any_addr: file .*foo.adb, line $any_nb." \
+    "insert breakpoint inside foo.call_me"
 
 gdb_test "continue" \
-        ".*Breakpoint $any_nb, foo\\.call_me \\(\\) at .*foo.adb:$any_nb.*" \
-        "decoding of function name"
+    ".*Breakpoint $any_nb, foo\\.call_me \\(\\) at .*foo.adb:$any_nb.*" \
+    "decoding of function name"
index 40f16cf82802de0b5432e0f59f6ebf10b08d46e3..0f8253b2118fa763fc0a5e59d814b306788d70a8 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "$srcfile" "$binfile" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index a98b54a152fd2c475752f83e8a92f226a4295f34..4e853dba24c5a8346b1a419c480174cc386ff4cd 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile fun_renaming
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index d8b9ff79d0712c9bf60e35ec3940def014249f28..1016bc3fca82f72e088994beb1af14bf962e8ebb 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 8539a7e28d21a92036ed654ab35d4f3da89cc6e7..65c99a05390fe1ba892d463c6b394db0ebd82a98 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -32,4 +32,4 @@ runto "foo.adb:$bp_location"
 # class-wide.
 
 gdb_test "p ident (ident (my_parameter))" \
-        "= \\(one => 1, two => 2, three => 3\\)" "value of ident"
+    "= \\(one => 1, two => 2, three => 3\\)" "value of ident"
index 35b09dfcf3c602ced5497bd4d7a19464647b6efc..f9e377d659a410ff5abfb62f1479b6530f87fea1 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "$srcfile" "$binfile" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,7 +29,7 @@ set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print pck.ga" " = \\(access integer\\) 0x0" \
-        "Check that initial value of GA is null"
+    "Check that initial value of GA is null"
 
 gdb_test_no_output "call pck.p(0x1234)"
 
@@ -39,4 +39,4 @@ gdb_test_no_output "call pck.p(0x1234)"
 # procedure hence should be 0x1234 after the call above.
 
 gdb_test "print pck.ga" " = \\(access integer\\) 0x1234" \
-        "Check that value of GA is 0x1234"
+    "Check that value of GA is 0x1234"
index f3861f766ad764f789930ac5256b08b00e4bfd87..9da7a9ff2a1254032bfc7f9452dfd9dc38eb2dda 100644 (file)
@@ -21,14 +21,14 @@ standard_ada_testfile main
 
 set flags [list debug additional_flags=-gnata]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable $flags] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/main.adb]
 if {![runto "main.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print pck.value" " = 64 '@'"
index 416435ab65928117718875f2a8a24a1de15c52ed..b5b64bb3701f7dc8c2d22972c640f7a2682e980b 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile homonym_main
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -51,24 +51,24 @@ runto "homonym.adb:$bp_location"
 # sure that the debugger doesn't get mixed up.
 
 gdb_test "ptype local_type" \
-        "type = range -100 \\.\\. 100" \
-        "ptype local_type at BREAK_1"
+    "type = range -100 \\.\\. 100" \
+    "ptype local_type at BREAK_1"
 
 gdb_test "ptype local_type_subtype" \
-        "type = range -100 \\.\\. 100" \
-        "ptype local_type_subtype at BREAK_1"
+    "type = range -100 \\.\\. 100" \
+    "ptype local_type_subtype at BREAK_1"
 
 gdb_test "ptype int_type" \
-        "type = range -100 \\.\\. 100" \
-        "ptype int_type at BREAK_1"
+    "type = range -100 \\.\\. 100" \
+    "ptype int_type at BREAK_1"
 
 gdb_test "ptype lcl" \
-        "type = range -100 \\.\\. 100" \
-        "ptype lcl at BREAK_1"
+    "type = range -100 \\.\\. 100" \
+    "ptype lcl at BREAK_1"
 
 gdb_test "print lcl" \
-        "= 29" \
-        "print lcl at BREAK_1"
+    "= 29" \
+    "print lcl at BREAK_1"
 
 # Now, continue until reaching BREAK_2, and do the same commands
 # as above.  The result should be different since the definitions
@@ -76,25 +76,25 @@ gdb_test "print lcl" \
 
 set bp_location [gdb_get_line_number "BREAK_2" ${testdir}/homonym.adb]
 gdb_test "break homonym.adb:$bp_location" \
-        "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*homonym\\.adb, line \[0-9\]+\\." \
-        "break at BREAK_2"
+    "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*homonym\\.adb, line \[0-9\]+\\." \
+    "break at BREAK_2"
 
 gdb_test "continue" \
-        ".*Breakpoint \[0-9\]+, homonym\\.get_value \\(\\) at .*homonym\\.adb:.*" \
-        "continue until BREAK_2"
+    ".*Breakpoint \[0-9\]+, homonym\\.get_value \\(\\) at .*homonym\\.adb:.*" \
+    "continue until BREAK_2"
 
 gdb_test "ptype local_type" \
-        "type = range 1 \\.\\. 19740804" \
-        "ptype local_type at BREAK_2"
+    "type = range 1 \\.\\. 19740804" \
+    "ptype local_type at BREAK_2"
 
 gdb_test "ptype local_type_subtype" \
-        "type = range 1 \\.\\. 19740804" \
-        "ptype local_type_subtype at BREAK_2"
+    "type = range 1 \\.\\. 19740804" \
+    "ptype local_type_subtype at BREAK_2"
 
 gdb_test "ptype lcl" \
-        "type = range 1 \\.\\. 19740804" \
-        "ptype lcl at BREAK_2"
+    "type = range 1 \\.\\. 19740804" \
+    "ptype lcl at BREAK_2"
 
 gdb_test "print lcl" \
-        "= 17" \
-        "print lcl at BREAK_2"
+    "= 17" \
+    "print lcl at BREAK_2"
index 2e4fa3bd885a178c11afcbe90d4984a45107f409..cff5d3786310aa627f3cdff3eceef758e814a2e2 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 # The following test exercises the situation when uppercase letters
index 52418dc95eff917ebf90dcb5939bb9be2fd6836d..e717802a8d2f4036c77d8a37e637966ee3b11aa5 100644 (file)
@@ -62,9 +62,9 @@ set func_in_ada(ada_syntax) \
 
 set type_in_c(c_syntax) "${decimal}:   typedef struct {\\.\\.\\.} some_type_in_c;"
 set type_in_c(ada_syntax) [multi_line \
-                             "${decimal}:      record" \
-                             "    some_component_in_c: int;" \
-                             "end record" ]
+                              "${decimal}:     record" \
+                              "    some_component_in_c: int;" \
+                              "end record" ]
 set type_in_ada(c_syntax) "${decimal}: struct global_pack__some_type_in_ada"
 set type_in_ada(ada_syntax)  "${decimal}:      global_pack.some_type_in_ada"
 
index 3ddeb4456009845bc79b27830d367ade42e405ed..dd2397cef03dcaae21751ba310c348f6951b4732 100644 (file)
@@ -20,35 +20,35 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-   return
+    return
 }
 
 gdb_test "info exceptions" \
     [multi_line "All defined Ada exceptions:" \
-               "constraint_error: $hex" \
-               "program_error: $hex" \
-               "storage_error: $hex" \
-               "tasking_error: $hex" \
-               ".*\[\r\n\]*const.aint_global_gdb_e: $hex\[\r\n\]*.*" ]
+        "constraint_error: $hex" \
+        "program_error: $hex" \
+        "storage_error: $hex" \
+        "tasking_error: $hex" \
+        ".*\[\r\n\]*const.aint_global_gdb_e: $hex\[\r\n\]*.*" ]
 
 gdb_test "info exceptions task" \
     [multi_line "All Ada exceptions matching regular expression \"task\":" \
-               "tasking_error: $hex"]
+        "tasking_error: $hex"]
 
 gdb_test "info exceptions global_gdb" \
     [multi_line "All Ada exceptions matching regular expression \"global_gdb\":" \
-               "const.aint_global_gdb_e: $hex"]
+        "const.aint_global_gdb_e: $hex"]
 
 gdb_test "info exceptions const.aint" \
     [multi_line "All Ada exceptions matching regular expression \"const\\.aint\":" \
-               "constraint_error: $hex" \
-               "const.aint_global_gdb_e: $hex"]
+        "constraint_error: $hex" \
+        "const.aint_global_gdb_e: $hex"]
 
 foreach cmd {exception handlers} {
     gdb_test "complete catch $cmd const.a" \
index a2e7d255bf926f02394797b6177494dbd3671626..6dc3d8575cf42dbf6c0c7531ff35f820660d1924 100644 (file)
@@ -29,4 +29,4 @@ gdb_test "set lang ada" ""
 set eol "\r\n"
 
 gdb_test "info types new_integer_type" \
-        "All types matching regular expression \"new_integer_type\":${eol}${eol}File .*info_types.c:${eol}.*\tint"
+    "All types matching regular expression \"new_integer_type\":${eol}${eol}File .*info_types.c:${eol}.*\tint"
index 18b1b645ef4032e6e35f25cda25c7a741db913ff..47489ca1c87859217e27a6d3d96e37fda12e05d4 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,10 +31,10 @@ runto "foo.adb:$bp_location"
 # Hijack a bit this testcase, to verify that name decoding works
 # when doing symbolic address printing.
 gdb_test "print watch'address" \
-        " = \\(system\\.address\\) $hex <pck\\.watch>"
+    " = \\(system\\.address\\) $hex <pck\\.watch>"
 
 gdb_test "print *long_integer(watch'address)" \
-        " = 4874"
+    " = 4874"
 
 gdb_test "print long_integer(watch'address).all" \
-        " = 4874"
+    " = 4874"
index aa8a6b95fcf60c9d554089f02b75861251c028c6..42e9184f9febc01088bcfa103f05b71c3c9d3b42 100644 (file)
@@ -22,7 +22,7 @@ require gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,10 +31,10 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print r" \
-        "= \\(x => 1, y => 2, w => 3, h => 4\\)"
+    "= \\(x => 1, y => 2, w => 3, h => 4\\)"
 
 gdb_test "print s" \
-        "= \\(x => 1, y => 2, w => 3, h => 4\\)"
+    "= \\(x => 1, y => 2, w => 3, h => 4\\)"
 
 set r_re "r = \[^\r\n\]*"
 set s_re "s = \[^\r\n\]*"
index eaed8506d0cc6dc4c548daa248c2df1fb916dc8c..da6db33fa0b8f76148fb399288e1c877c7e38280 100644 (file)
@@ -22,7 +22,7 @@ require gnat_runtime_has_debug_info
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -52,16 +52,16 @@ gdb_test_multiple "" "Runto to $bp_location" {
 }
 
 gdb_test "print My_Drawable" \
-        "= \\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+    "= \\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print s_access.all" \
-        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+    "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print sp_access.all" \
-        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+    "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print d_access.all" \
-        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+    "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
 
 gdb_test "print dp_access.all" \
-        "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
+    "\\(center => \\(x => 1, y => 2\\), radius => 3\\)"
index 5d73215f95736d9c1e0eba83ab0f8da8dada2bdb..522447713ab539b751c61b6714434844a3979040 100644 (file)
@@ -24,7 +24,7 @@ set cobject [standard_output_file ${cfile}.o]
 
 gdb_compile "${csrcfile}" "${cobject}" object [list debug]
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -37,8 +37,8 @@ gdb_test_no_output "set print frame-arguments all"
 # Make sure that the language is switched to Ada for the second frame
 # by checking the string parameter.
 gdb_test "bt" \
-        ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=\"msg\"\\).*" \
-        "backtrace"
+    ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=\"msg\"\\).*" \
+    "backtrace"
 
 # Now, make sure that the language doesn't get automatically switched
 # if the current language is not "auto".
@@ -47,5 +47,5 @@ gdb_test "set lang c"
 # -fgnat-encodings=all, but since we don't care so much about the
 # precise details here, we just accept anything.
 gdb_test "bt" \
-        ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=(@$hex: +)?.*\\).*" \
-        "backtrace with lang set to C"
+    ".*#1.*lang_switch\\.ada_procedure\\s*\\(msg=(@$hex: +)?.*\\).*" \
+    "backtrace with lang set to C"
index 9020a8abe3c98e40489716a6eb65b9ebd6e88a87..5cf4fb8eabd99a5bf447d0c942a4e136b1a7ce18 100644 (file)
@@ -23,7 +23,7 @@ require allow_ada_tests
 standard_ada_testfile length_cond
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index a61172d14bc48fc044af60470375c400c76067ca..c8da41132506ce2c7afb4374409c5fdd829a0832 100644 (file)
@@ -20,8 +20,8 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable \
-       [list debug ]] != "" } {
-  return
+        [list debug ]] != "" } {
+    return
 }
 
 clean_restart ${testfile}
index 54d318d8974c39d7be96f307e6ff1372f9b7059f..b1f9b95c9d767bcff0b87e2d7079d133f3ea8085 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile local
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/local.adb]
 if {![runto "local.adb:$bp_location"]} {
-  return
+    return
 }
 
 # The test has two constants named 'three', with different values.
index 320ef5bf7cb7b99f17be7da30b09904188cad393..796b7ff26591889134a955e6f509fb4344ba46ab 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile var_arr_typedef
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 12181cf90a01ec22f573032ebad4d3dc8a782692..b128513226de6a882793e4c2bd4296d8d8e38a55 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile bla
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -39,19 +39,19 @@ mi_clean_restart $::testfile
 #  - continue, the program exits.
 
 if {[mi_runto_main] < 0} {
-   return
+    return
 }
 
 mi_gdb_test "-catch-assert -c \"Global_Var = 2\"" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*,cond=\"Global_Var = 2\",.*}" \
-           "catch assert failures with condition"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*,cond=\"Global_Var = 2\",.*}" \
+    "catch assert failures with condition"
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/bla.adb]
 mi_execute_to "exec-continue" \
-             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\"" \
-             "bla" "" ".*" "$bp_location" \
-             ".*" \
-             "continue to assert failure catchpoint hit"
+    "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\"" \
+    "bla" "" ".*" "$bp_location" \
+    ".*" \
+    "continue to assert failure catchpoint hit"
 
 # Exit the inferior.
 mi_send_resuming_command "exec-continue" "continuing to inferior exit"
index 00d2897271abc701d79b49e5fc0d5eb06060d9d7..889cc1c2d82b4e24a7f2fa30c7b65540273491cd 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 # A global variable used to simplify the maintenance of some of
@@ -43,8 +43,8 @@ with_test_prefix "scenario 1" {
 }
 
 mi_gdb_test "-catch-exception" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions\",.*}" \
-           "catch all exceptions"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions\",.*}" \
+    "catch all exceptions"
 
 # Continue to caught exception.
 
@@ -101,31 +101,31 @@ with_test_prefix "scenario 2" {
 }
 
 mi_gdb_test "-catch-exception -e Program_Error" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Program_Error' Ada exception\",.*}" \
-           "catch Program_Error"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Program_Error' Ada exception\",.*}" \
+    "catch Program_Error"
 
 mi_gdb_test "-catch-assert" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*}" \
-           "catch assert failures"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"failed Ada assertions\",.*}" \
+    "catch assert failures"
 
 mi_gdb_test "-catch-exception -u" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"unhandled Ada exceptions\",.*}" \
-           "catch unhandled exceptions"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"unhandled Ada exceptions\",.*}" \
+    "catch unhandled exceptions"
 
 mi_execute_to "exec-continue" \
-             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"PROGRAM_ERROR(\",exception-message=\"foo\\.adb:$decimal explicit raise)?\"" \
-             "foo" "" ".*" ".*" \
-             ".*" \
-             "continue to exception catchpoint hit"
+    "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"PROGRAM_ERROR(\",exception-message=\"foo\\.adb:$decimal explicit raise)?\"" \
+    "foo" "" ".*" ".*" \
+    ".*" \
+    "continue to exception catchpoint hit"
 
 mi_execute_to "exec-continue" \
-             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\"" \
-             "foo" "" ".*" ".*" \
-             ".*" \
-             "continue to assert failure catchpoint hit"
+    "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\"" \
+    "foo" "" ".*" ".*" \
+    ".*" \
+    "continue to assert failure catchpoint hit"
 
 mi_execute_to "exec-continue" \
-             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"CONSTRAINT_ERROR\"" \
-             "foo" "" ".*" ".*" \
-             ".*" \
-             "continue to unhandled exception catchpoint hit"
+    "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$any_nb\",exception-name=\"CONSTRAINT_ERROR\"" \
+    "foo" "" ".*" ".*" \
+    ".*" \
+    "continue to unhandled exception catchpoint hit"
index a1fb6ac3704de761e9598f494a7af296eff550c9..bb1113c3b8e25c5de532167e03e353c02bbfc479 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -39,8 +39,8 @@ with_test_prefix "scenario 1" {
 }
 
 mi_gdb_test "-catch-handlers" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions handlers\",.*}" \
-           "catch all exceptions handlers"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"all Ada exceptions handlers\",.*}" \
+    "catch all exceptions handlers"
 
 # Continue to exception handler.
 
@@ -91,14 +91,14 @@ with_test_prefix "scenario 2" {
 }
 
 mi_gdb_test "-catch-handlers -e Constraint_Error" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Constraint_Error' Ada exception handlers\",.*}" \
-           "catch Constraint_Error"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`Constraint_Error' Ada exception handlers\",.*}" \
+    "catch Constraint_Error"
 
 mi_execute_to "exec-continue" \
-             "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\",exception-name=\"exception\"" \
-             "foo" "" ".*" "$bp_ce_location" \
-             ".*" \
-             "continue to exception catchpoint hit"
+    "\"breakpoint-hit\",disp=\"keep\",bkptno=\"$decimal\",exception-name=\"exception\"" \
+    "foo" "" ".*" "$bp_ce_location" \
+    ".*" \
+    "continue to exception catchpoint hit"
 
 # Exit the inferior.
 mi_send_resuming_command "exec-continue" "continuing to inferior exit"
index c40fee5f05a44805b74fcd8dcfbfa95cb8a87e3e..e10a7998d4c67010c870ee1de921a63d7c513c23 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -29,7 +29,7 @@ set MIFLAGS "-i=mi"
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-   return
+    return
 }
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
index 88516e8ec16645d6dd9c43a9eb3672c8acac4faf..7567723ce5efa80f1cf376ec89048e5d3b961cf2 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-bargs additional_flags=-static additional_flags=-margs ]] != "" } {
-  return
+    return
 }
 
 # A global variable used to simplify the maintenance of some of
@@ -38,8 +38,8 @@ if {[mi_clean_restart $::testfile]} {
 # catchpoint that uses both conditions and exception name.
 
 mi_gdb_test "-catch-exception -c \"i = 2\" -e constraint_error" \
-           "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",.*,cond=\"i = 2\",.*}" \
-           "catch C_E if i = 2"
+    "\\^done,bkptno=\"$decimal\",bkpt={.*disp=\"keep\",enabled=\"y\",what=\"`constraint_error' Ada exception\",.*,cond=\"i = 2\",.*}" \
+    "catch C_E if i = 2"
 
 # It is important that we start the program's execution after having
 # inserted the exception catchpoint above.  We want to verify that
index 777cbb629d5bd5bbc0f69ed75cb8f49e40e79379..2874e8d7dde9a36d48cccb10fd4df79c044ecc0e 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -29,7 +29,7 @@ set MIFLAGS "-i=mi"
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-   return
+    return
 }
 
 mi_delete_breakpoints
@@ -37,17 +37,17 @@ mi_gdb_reinitialize_dir $srcdir/$subdir
 mi_gdb_load ${binfile}
 
 mi_gdb_test "-info-ada-exceptions" \
-  "\\^done,ada-exceptions={nr_rows=\"$decimal\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"constraint_error\",address=\"$hex\"},{name=\"program_error\",address=\"$hex\"},{name=\"storage_error\",address=\"$hex\"},{name=\"tasking_error\",address=\"$hex\"},.*{name=\"const.aint_global_gdb_e\",address=\"$hex\"}.*\\\]}" \
-  "-info-ada-exceptions"
+    "\\^done,ada-exceptions={nr_rows=\"$decimal\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"constraint_error\",address=\"$hex\"},{name=\"program_error\",address=\"$hex\"},{name=\"storage_error\",address=\"$hex\"},{name=\"tasking_error\",address=\"$hex\"},.*{name=\"const.aint_global_gdb_e\",address=\"$hex\"}.*\\\]}" \
+    "-info-ada-exceptions"
 
 mi_gdb_test "-info-ada-exceptions task" \
-  "\\^done,ada-exceptions={nr_rows=\"1\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"tasking_error\",address=\"$hex\"}\\\]}" \
-  "-info-ada-exceptions task"
+    "\\^done,ada-exceptions={nr_rows=\"1\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"tasking_error\",address=\"$hex\"}\\\]}" \
+    "-info-ada-exceptions task"
 
 mi_gdb_test "-info-ada-exceptions global_gdb" \
-  "\\^done,ada-exceptions={nr_rows=\"1\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"const.aint_global_gdb_e\",address=\"$hex\"}\\\]}" \
-  "-info-ada-exceptions global_gdb"
+    "\\^done,ada-exceptions={nr_rows=\"1\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"const.aint_global_gdb_e\",address=\"$hex\"}\\\]}" \
+    "-info-ada-exceptions global_gdb"
 
 mi_gdb_test "-info-ada-exceptions const.aint" \
-  "\\^done,ada-exceptions={nr_rows=\"2\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"constraint_error\",address=\"$hex\"},{name=\"const.aint_global_gdb_e\",address=\"$hex\"}\\\]}" \
-  "-info-ada-exceptions const.aint"
+    "\\^done,ada-exceptions={nr_rows=\"2\",nr_cols=\"2\",hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"name\",colhdr=\"Name\"},{width=\"1\",alignment=\"-1\",col_name=\"address\",colhdr=\"Address\"}\\\],body=\\\[{name=\"constraint_error\",address=\"$hex\"},{name=\"const.aint_global_gdb_e\",address=\"$hex\"}\\\]}" \
+    "-info-ada-exceptions const.aint"
index c26d794ac2b45f064aad4f42d8b18a0ffe63873a..8d377965edfbe02f9186f0ea3bad41a40e1fcb22 100644 (file)
@@ -22,7 +22,7 @@ require gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat12 ]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -31,7 +31,7 @@ set MIFLAGS "-i=mi"
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-   return
+    return
 }
 
 set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo.adb]
index ed5dcf3fecf215de9b7190ac0c0790427209e375..6fa38a9ad55e3e793df8b381bba954871155688f 100644 (file)
@@ -31,7 +31,7 @@ set MIFLAGS "-i=mi"
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-   return
+    return
 }
 
 mi_delete_breakpoints
index 6af6fd76eb72e3caa3c60acdd30a4847369350c0..228123c9773f5bfea9e6dc19f7bbe4f57380d621 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo_rb20_056
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -29,7 +29,7 @@ set MIFLAGS "-i=mi"
 mi_clean_restart $::testfile
 
 if {[mi_runto_main] < 0} {
-   return
+    return
 }
 
 # Continue until STOP_1, and create a varobj for variables "A" and "B".
index ab0dca2f2c1fb439916e669259900235e0a8132f..52eef8484ac97e802883e1a7ae33189570b4109a 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile task_switch
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -34,7 +34,7 @@ if {[mi_clean_restart $::testfile]} {
 mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*"
 
 if {![mi_runto "task_switch.break_me"]} {
-   return
+    return
 }
 
 # Verify that "-stack-list-arguments" does not cause the debugger to
index 757df384b486f40e4990d29871a56077e84722b8..9c53cbc225603762cc19a61120873cb438d18469 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile task_switch
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnata ]] != "" } {
-  return
+    return
 }
 
 load_lib mi-support.exp
@@ -35,24 +35,24 @@ if {[mi_clean_restart $::testfile]} {
 ####################################
 
 if {![mi_runto "task_switch.break_me"]} {
-   return
+    return
 }
 
 set ada_task_info_hdr \
-  "hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"current\",colhdr=\"\"},{width=\"3\",alignment=\"1\",col_name=\"id\",colhdr=\"ID\"},{width=\"9\",alignment=\"1\",col_name=\"task-id\",colhdr=\"TID\"},{width=\"4\",alignment=\"1\",col_name=\"thread-id\",colhdr=\"\"},{width=\"4\",alignment=\"1\",col_name=\"parent-id\",colhdr=\"P-ID\"},{width=\"3\",alignment=\"1\",col_name=\"priority\",colhdr=\"Pri\"},{width=\"22\",alignment=\"-1\",col_name=\"state\",colhdr=\"State\"},{width=\"1\",alignment=\"2\",col_name=\"name\",colhdr=\"Name\"}\\\]"
+    "hdr=\\\[{width=\"1\",alignment=\"-1\",col_name=\"current\",colhdr=\"\"},{width=\"3\",alignment=\"1\",col_name=\"id\",colhdr=\"ID\"},{width=\"9\",alignment=\"1\",col_name=\"task-id\",colhdr=\"TID\"},{width=\"4\",alignment=\"1\",col_name=\"thread-id\",colhdr=\"\"},{width=\"4\",alignment=\"1\",col_name=\"parent-id\",colhdr=\"P-ID\"},{width=\"3\",alignment=\"1\",col_name=\"priority\",colhdr=\"Pri\"},{width=\"22\",alignment=\"-1\",col_name=\"state\",colhdr=\"State\"},{width=\"1\",alignment=\"2\",col_name=\"name\",colhdr=\"Name\"}\\\]"
 set task_1 \
-  "{id=\"1\",task-id=\" *(0x)?\[0-9a-fA-F\]+\",thread-id=\"\[0-9\]+\",priority=\"\[0-9\]+\",state=\"(Child (Activation|Termination) Wait|Runnable)\",name=\"main_task\"}"
+    "{id=\"1\",task-id=\" *(0x)?\[0-9a-fA-F\]+\",thread-id=\"\[0-9\]+\",priority=\"\[0-9\]+\",state=\"(Child (Activation|Termination) Wait|Runnable)\",name=\"main_task\"}"
 set task_2 \
-  "{id=\"2\",task-id=\" *(0x)?\[0-9a-fA-F\]+\",thread-id=\"\[0-9\]+\",parent-id=\"1\",priority=\"\[0-9\]+\",state=\"(Accept or Select Term|Runnable)\",name=\"my_callee\"}"
+    "{id=\"2\",task-id=\" *(0x)?\[0-9a-fA-F\]+\",thread-id=\"\[0-9\]+\",parent-id=\"1\",priority=\"\[0-9\]+\",state=\"(Accept or Select Term|Runnable)\",name=\"my_callee\"}"
 set task_3 \
-  "{current=\"\\*\",id=\"3\",task-id=\" *(0x)?\[0-9a-fA-F\]+\",thread-id=\"\[0-9\]+\",parent-id=\"1\",priority=\"\[0-9\]+\",state=\"Runnable\",name=\"my_caller\"}"
+    "{current=\"\\*\",id=\"3\",task-id=\" *(0x)?\[0-9a-fA-F\]+\",thread-id=\"\[0-9\]+\",parent-id=\"1\",priority=\"\[0-9\]+\",state=\"Runnable\",name=\"my_caller\"}"
 
 # Get the full list of tasks...
 mi_gdb_test "-ada-task-info" \
-  ".*\\^done,tasks={nr_rows=\"3\",nr_cols=\"8\",$ada_task_info_hdr,body=\\\[$task_1,$task_2,$task_3\\\]}" \
-  "-ada-task-info with no argument"
+    ".*\\^done,tasks={nr_rows=\"3\",nr_cols=\"8\",$ada_task_info_hdr,body=\\\[$task_1,$task_2,$task_3\\\]}" \
+    "-ada-task-info with no argument"
 
 # Now, only get the info about task 3.
 mi_gdb_test "-ada-task-info 3" \
-  "\\^done,tasks={nr_rows=\"1\",nr_cols=\"8\",$ada_task_info_hdr,body=\\\[$task_3\\\]}" \
-  "-ada-task-info 3"
+    "\\^done,tasks={nr_rows=\"1\",nr_cols=\"8\",$ada_task_info_hdr,body=\\\[$task_3\\\]}" \
+    "-ada-task-info 3"
index 6f354b32710dd076fbfd3ed816cd77c7d5ed1071..1eb5fa6c4ebfa43df5e3e2d366c5224f5cf9c9b9 100644 (file)
@@ -20,25 +20,25 @@ require allow_ada_tests
 standard_ada_testfile foo_qb07_057
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable ""] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto "_ada_foo_qb07_057"]} {
-  return
+    return
 }
 
 gdb_test_no_output "set language ada"
 
 gdb_test "print some_minsym" \
-        "'some_minsym' has unknown type; cast it to its declared type"
+    "'some_minsym' has unknown type; cast it to its declared type"
 
 gdb_test "print integer(some_minsym)" \
-        " = 1234"
+    " = 1234"
 
 gdb_test "print &some_minsym" \
-        " = \\(access <data variable, no debug info>\\) $hex <some_minsym>"
+    " = \\(access <data variable, no debug info>\\) $hex <some_minsym>"
 
 gdb_test "print /x integer(&some_minsym)" \
-        " = $hex"
+    " = $hex"
index 7ef01806d6e11c67bacf0f81c104089cd844621e..aae9d279bcd48532cabe63135a4f39e4e3fd0a7b 100644 (file)
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "ptype var" \
-        "= array \\(0 .. -1\\) of integer"
+    "= array \\(0 .. -1\\) of integer"
index 1638bef7c2dd17392639d7f71b4c734d16eb847f..f65e5d63a72a8609a61445e7c89888d223705210 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile hello
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,8 +31,8 @@ set any_addr "0x\[0-9a-zA-Z\]+"
 # Try breaking on a nested function.
 
 gdb_test "break first" \
-        "Breakpoint $any_nb at $any_addr: file .*hello.adb, line $any_nb." \
-        "break on nested function First"
+    "Breakpoint $any_nb at $any_addr: file .*hello.adb, line $any_nb." \
+    "break on nested function First"
 
 gdb_test "break fourth" \
     "Breakpoint $any_nb at $any_addr: file .*hello.adb, line $any_nb." \
index a951d9a9ca288420e68e028e1eaa35cad1a6b794..1c1790c4459b3055857270b006cf0ecc126c55ba 100644 (file)
@@ -26,20 +26,20 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
 clean_restart ${testfile}
 
 gdb_test "print /x <symada__cS>" \
-        "= \\(a => 0x60287af\\)" \
-        "print <symada__cS> before loading symbols from ver.ads"
+    "= \\(a => 0x60287af\\)" \
+    "print <symada__cS> before loading symbols from ver.ads"
 
 # Force the partial symbosl from ver.ads to be expanded into full symbols.
 
 gdb_test \
-     "list ver.ads:16" \
-     [multi_line ".*" \
-                "16\\s+package Ver is" \
-                "17\\s+type Wrapper is record" \
-                "18\\s+A : Integer;" \
-                "19\\s+end record;" \
-                "20\\s+u00045 : constant Wrapper := \\(A => 16#060287af#\\);"]
+    "list ver.ads:16" \
+    [multi_line ".*" \
+        "16\\s+package Ver is" \
+        "17\\s+type Wrapper is record" \
+        "18\\s+A : Integer;" \
+        "19\\s+end record;" \
+        "20\\s+u00045 : constant Wrapper := \\(A => 16#060287af#\\);"]
 
 gdb_test "print /x <symada__cS>" \
-        "= \\(a => 0x60287af\\)" \
-        "print <symada__cS> after loading symbols from ver.ads"
+    "= \\(a => 0x60287af\\)" \
+    "print <symada__cS> after loading symbols from ver.ads"
index 16131c01af00864cb367110ed681605fe2850326..871066f582059d33b6e916f00be58e7a360c3e9a 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -33,10 +33,10 @@ if {[gnat_version_compare <= {4 4}]} {
     setup_xfail *-*-*
 }
 gdb_test "print my_table" \
-        "= \\(\\)"
+    "= \\(\\)"
 
 gdb_test "ptype my_table" \
-        "type = array \\(10 \\.\\. 1\\) of integer"
+    "type = array \\(10 \\.\\. 1\\) of integer"
 
 gdb_test "print my_matrix" \
-        "= \\(m => \\((\"\", ){9}\"\"\\)\\)"
+    "= \\(m => \\((\"\", ){9}\"\"\\)\\)"
index 64ac2df8b5ecb5c0f374d62c760454cb8ed5fef4..f6d307d74cd8f77832a478f7ee447ed2f05831bb 100644 (file)
@@ -29,5 +29,5 @@ set bp_location [gdb_get_line_number "START" ${testdir}/null_record.adb]
 runto "null_record.adb:$bp_location"
 
 gdb_test "ptype empty" \
-        "type = record null; end record" \
-        "ptype on null record"
+    "type = record null; end record" \
+    "ptype on null record"
index bd545c25be77be9aaeef9ec235168b57569a28f1..562bfd5ea8f7eb9f7684ce824aa1e457d8de50e1 100644 (file)
@@ -56,8 +56,8 @@ foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&"
 foreach op { "+" "-" "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
     set op_re [string_to_regexp $op]
     gdb_test "continue" \
-            "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
-            "continue to \"$op\""
+       "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
+       "continue to \"$op\""
 }
 
 # Perform the same test, but using the qualified name of the operator,
@@ -72,13 +72,13 @@ runto "ops_test.adb:$bp_location"
 foreach op { "+" "-" } {
     set op_re [string_to_regexp $op]
     gdb_test "break ops.\"$op\"" \
-            "Breakpoint $decimal at $hex: ops\\.\"$op_re\"\\. \\(2 locations\\)"
+       "Breakpoint $decimal at $hex: ops\\.\"$op_re\"\\. \\(2 locations\\)"
 }
 
 foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
     set op_re [string_to_regexp $op]
     gdb_test "break ops.\"$op\"" \
-            "Breakpoint $decimal at $hex: file .*ops.adb, line $decimal."
+       "Breakpoint $decimal at $hex: file .*ops.adb, line $decimal."
 }
 
 # Make sure we stop correctly in each operator function.
@@ -86,6 +86,6 @@ foreach op { "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&"
 foreach op { "+" "-" "*" "/" "mod" "rem" "**" "<" "<=" ">" ">=" "=" "and" "or" "xor" "&" "abs" "not"} {
     set op_re [string_to_regexp $op]
     gdb_test "continue" \
-            "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
-            "continue to ops.\"$op\""
+       "Breakpoint $bkptno_numopt_re, ops\\.\"$op_re\" .*"\
+       "continue to ops.\"$op\""
 }
index 19bb463ebebca1303e3f57f46606d7cfcb57c969..2f5862e385cfd203e260acfb64e50e982c2fd359 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto "foo"]} {
-  return
+    return
 }
 
 gdb_test "print z" \
-        "= (\\(a => .*, b => .*, c => .*\\)|<optimized out>)"
+    "= (\\(a => .*, b => .*, c => .*\\)|<optimized out>)"
index 36ed1d295442a75e6c7c9da755572648d5aa6399..491af6320be711e5167ddbb6f37212cc95d0a574 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile tester
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 5c5e1330b196e6c874c706bf898fe5ecb285fba6..81cb093fb3c19dfa0e08fbe87eaf93da5232ca53 100644 (file)
@@ -29,16 +29,16 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_o508_021.adb]
 runto "foo_o508_021.adb:$bp_location"
 
 gdb_test "print SSA" \
-        "= \\(-1, 2, -3, 4\\)"
+    "= \\(-1, 2, -3, 4\\)"
 
 gdb_test "print SSA(1)" \
-        "= -1"
+    "= -1"
 
 gdb_test "print SSA(2)" \
-        "= 2"
+    "= 2"
 
 gdb_test "print SSA(3)" \
-        "= -3"
+    "= -3"
 
 gdb_test "print SSA(4)" \
-        "= 4"
+    "= 4"
index 3b88c1e1e67d96dab84b92fb73af2b84505f78c3..b1bd8cfd5b4b2c2ed34b2b19f5fe55676037663f 100644 (file)
@@ -55,16 +55,16 @@ gdb_test_multiple "" "Runto to $bp_location" {
 # of the components.  Accept both known orders.
 set test "print test"
 gdb_test_multiple "$test" $test {
-  -re "= \\(size => 100, length => 1, str => \\(33 'A', nul <repeats 99 times>\\)\\).*$gdb_prompt $" {
-    pass $test
+    -re "= \\(size => 100, length => 1, str => \\(33 'A', nul <repeats 99 times>\\)\\).*$gdb_prompt $" {
+       pass $test
     }
-  -re "= \\(size => 100, str => \\(33 'A', nul <repeats 99 times>\\), length => 1\\).*$gdb_prompt $" {
-    pass $test
+    -re "= \\(size => 100, str => \\(33 'A', nul <repeats 99 times>\\), length => 1\\).*$gdb_prompt $" {
+       pass $test
     }
 }
 
 gdb_test "print test.str" \
-        "= \\(33 'A', nul <repeats 99 times>\\)"
+    "= \\(33 'A', nul <repeats 99 times>\\)"
 
 gdb_test "print test.str(1)" \
-        "= 33 'A'"
+    "= 33 'A'"
index 8db2d5f891f9af488df7261ebb65e6431344bfd2..39eec3098b51cca7ff2ac09c19779010da0655f1 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests allow_python_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,7 +34,7 @@ set bp_location [gdb_get_line_number "BREAK" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "print before" \
-        " = Thu Nov 14 02:22:23 2013 \\(1384395743\\)"
+    " = Thu Nov 14 02:22:23 2013 \\(1384395743\\)"
 
 gdb_test "print /r before" \
-        " = \\(secs => 1384395743\\)"
+    " = \\(secs => 1384395743\\)"
index f87c85b1046e57553ba1d8694ffb0cab86903874..cefc6bcbc87b268b299f77231981c7270acd2c5d 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -30,12 +30,12 @@ runto "foo.adb:$bp_location"
 
 
 gdb_test "print C" \
-        "= 97 'a'"
+    "= 97 'a'"
 
 gdb_test "print WC" \
-        "= 98 'b'"
+    "= 98 'b'"
 
 gdb_test "print WWC" \
-        "= 99 'c'"
+    "= 99 'c'"
 
 gdb_test "print MC" " = 77 'M'"
index 212e9e622115a562b92203f07dd1ccb1a817b2f0..ceea2b283cd28fc89113ae5b6c349b5928e5edcb 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile dummy start
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "START" ${testdir}/dummy.adb]
 runto "dummy.adb:$bp_location"
 
 gdb_test "p /x \$pc" \
-        "= 0x\[0-9a-zA-Z\]+"
+    "= 0x\[0-9a-zA-Z\]+"
index 5d0b1c9df323d58ae906435a7c060c7e17da08ac..ede4003f31db7a8a9af6fab3d6d2fb77ad15435c 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 0b485bb04c650caeadb39ef681f942f91f3d3841..686afb644785eb68b900cfb190d5de760976c01f 100644 (file)
@@ -18,10 +18,10 @@ require allow_ada_tests
 clean_restart
 
 gdb_test_no_output "set lang ada" \
-        "set lang ada"
+    "set lang ada"
 
 gdb_test "ptype 3 * 2.0" \
-        "= <\[0-9\]+-byte float>"
+    "= <\[0-9\]+-byte float>"
 
 gdb_test "ptype 3 / 2.0" \
-        "= <\[0-9\]+-byte float>"
+    "= <\[0-9\]+-byte float>"
index 1c0f2aabcc5dc41dae9b25f1311ca698659af2a9..ad38794ccebef8e4c45f5c35716c80b4f7984132 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index abaf6f00409782d22beefca87e1e24ae49f04a89..0cf089a752e68482411fca453c94a3382409cae5 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-gnat05 ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,19 +29,19 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "ptype circle" \
-        [multi_line "type = record" \
-                    "    pos: pck\\.position;" \
-                    "    radius: integer;" \
-                    "end record" ]
+    [multi_line "type = record" \
+        "    pos: pck\\.position;" \
+        "    radius: integer;" \
+        "end record" ]
 
 gdb_test "ptype circle.pos" \
-        [multi_line "type = record" \
-                    "    x: integer;" \
-                    "    y: integer;" \
-                    "end record" ]
+    [multi_line "type = record" \
+        "    x: integer;" \
+        "    y: integer;" \
+        "end record" ]
 
 gdb_test "ptype circle.pos.x" \
-        "type = <\[0-9\]+-byte integer>"
+    "type = <\[0-9\]+-byte integer>"
 
 gdb_test "complete print my_circ" "print my_circle"
 gdb_test "complete print my_circle.r" "print my_circle\\.radius"
@@ -65,9 +65,9 @@ gdb_test "complete ptype pck.c" "ptype pck\\.circle"
 # We can't query the members of a package yet, and this yields a bit
 # too much output, so comment out for now instead of kfailing.
 # gdb_test "complete ptype pck." \
-#     [multi_line \
-#       "ptype pck\\.circle" \
-#       "ptype pck\\.position"]
+    #     [multi_line \
+    #   "ptype pck\\.circle" \
+    #   "ptype pck\\.position"]
 
 gdb_test "complete ptype circle.pos." \
     [multi_line \
index 5389f7981fb32c5ba91bdf6ff7e779b7c6ca4af7..347187bef22c5316c837620bb45cc538efb23763 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 set has_runtime_debug_info [gnat_runtime_has_debug_info]
@@ -28,7 +28,7 @@ set has_runtime_debug_info [gnat_runtime_has_debug_info]
 clean_restart ${testfile}
 
 if {![runto "pck.adb:20"]} {
-  return
+    return
 }
 
 # With some versions of the compiler, identifying the runtime type of
index 426fba0d67305b50be8cd43d9cdb2a930c7faa1d..92864e8cd6e6aa1b2cad48032055973e5f732327 100644 (file)
@@ -21,7 +21,7 @@ require allow_ada_tests allow_python_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -30,13 +30,13 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 runto "foo.adb:$bp_location"
 
 gdb_test "python print(int(gdb.parse_and_eval('sr')))" \
-        "48"
+    "48"
 
 gdb_test "python print(int(gdb.parse_and_eval('si')))" \
-        "740804"
+    "740804"
 
 gdb_test "python print(int(gdb.parse_and_eval('ir')))" \
-        "974"
+    "974"
 
 # Accept "foo." prefix for older versions of GNAT.
 gdb_test "python print(gdb.parse_and_eval('si').type)" \
index c585952e490fe84136090923d9fdc1b9942d8488..3bfd503e9e182ad93962e8e2468a7b54505e61c5 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -33,8 +33,8 @@ runto "break_me"
 # Switch to task 2, and verify that GDB is able to unwind all the way
 # to foo.T.
 gdb_test "task 2" \
-        [join {"\\\[Switching to task 2 \"mit\"\\\].*" \
-               ".*foo\\.t \\(.*\\).*foo\\.adb:.*"} ""]
+    [join {"\\\[Switching to task 2 \"mit\"\\\].*" \
+              ".*foo\\.t \\(.*\\).*foo\\.adb:.*"} ""]
 
 gdb_test "task apply 1 -q frame" ".*pck\\.break_me.*"
 
index 7e94e201905887836ca25a108385681524231712..5d925695965d13e5e965fb14816ac94d8227b28a 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile bar_o203_012
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/bar_o203_012.adb]
 if {![runto "bar_o203_012.adb:$bp_location"]} {
-  return
+    return
 }
 
 # Accept "bar_o203_012." prefix for older versions of GNAT.
index 56fb0b9f9fe4036e983c2d6d39a63703f5a7c585..5ee1be34f46bd31bffb405fc9d651c9692fcc40b 100644 (file)
@@ -20,15 +20,15 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print bar" \
-        "= \\(x => 42, s => \"ABCDEFGH\"\\)"
+    "= \\(x => 42, s => \"ABCDEFGH\"\\)"
index 27197e62f92fb9eb00bed0cb2191e070837b2376..f207a0b127cb6265a3a08d7215d3a40b0e0db039 100644 (file)
@@ -20,18 +20,18 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto pck.adb:20]} {
-  return
+    return
 }
 
 gdb_test_no_output "set print frame-arguments all"
 
 set expected_d "\\(one => 1, two => 2, three => 3, four => 4, five => 5, six => 6\\)"
 gdb_test "frame" \
-        "#0\[ \t\]*pck\\.call_me \\(d=${expected_d}\\).*"  \
-        "frame argument value printed"
+    "#0\[ \t\]*pck\\.call_me \\(d=${expected_d}\\).*"  \
+    "frame argument value printed"
index b62b9f19a554ffb269bdd2afaa56b9e5f210f144..6ab00772b256d4534aa679f8a25eec96f71c2c53 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,4 +34,4 @@ runto "p.adb:$bp_location"
 # the size of d1.
 
 gdb_test "print d1'size = d2'size" \
-        "= true"
+    "= true"
index 5ec9b2a04c709f8ae3a317f0baeab719927b3db6..0a9b7eaaf98955b1578de2fa1bb993615b5c1275 100644 (file)
@@ -22,7 +22,7 @@ require {gnat_version_compare >= 8}
 standard_ada_testfile pb30_012
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,18 +31,18 @@ set bp_location [gdb_get_line_number "BREAK" ${testdir}/pkg.adb]
 runto "pkg.adb:$bp_location"
 
 gdb_test "print rename_subscript_param_b" \
-        " = false" \
-        "print rename_subscript_param_b before changing its value"
+    " = false" \
+    "print rename_subscript_param_b before changing its value"
 
 set bp_location [gdb_get_line_number "Do_Nothing" ${testdir}/pkg.adb]
 gdb_test "break pkg.adb:$bp_location" \
-        "Breakpoint \[0-9\]+ at.*: file .*pkg.adb, line \[0-9\]+." \
-        "insert second breakpoint in pkg.adb"
+    "Breakpoint \[0-9\]+ at.*: file .*pkg.adb, line \[0-9\]+." \
+    "insert second breakpoint in pkg.adb"
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+, pkg.flip \\(.*" \
-        "Continuing to breakpoint on call to Do_Nothing"
+    "Breakpoint \[0-9\]+, pkg.flip \\(.*" \
+    "Continuing to breakpoint on call to Do_Nothing"
 
 gdb_test "print rename_subscript_param_b" \
-        " = true" \
-        "print rename_subscript_param_b after changing its value"
+    " = true" \
+    "print rename_subscript_param_b after changing its value"
index 3cece3aa4932a7506cd822c9010c758c24bf1c9b..f0ea4d5298a11477da8e34c6617482a315cd9cf4 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo_oc22_002
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,4 +29,4 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_oc22_002.adb]
 runto "foo_oc22_002.adb:$bp_location"
 
 gdb_test "print a1(1)@3" \
-        " = \\(3, 5, 8\\)"
+    " = \\(3, 5, 8\\)"
index b8652ac2afbfb982225d71a2d00a500fa43f81d2..a7777736d262be145d26f9b6ad82699fb02ad075 100644 (file)
@@ -26,7 +26,7 @@ if { [ada_fvar_tracking] } {
 }
 
 if { [gdb_compile_ada $srcfile $binfile executable $opts] != "" } {
-  return
+    return
 }
 
 clean_restart $testfile
index fc75c215e67eb8c8939394ec4878b528806fa447..c76f9610c024a16c5bd97057ec8e1a77944462c1 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile a
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index f6504a75cf293eaebfa4e32dde48e161a76d1319..212caa1c0fac9f872b43edc18abc251d6a22c447 100644 (file)
@@ -42,7 +42,7 @@ clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/storage.adb]
 if {![runto "storage.adb:$bp_location"]} {
-  return
+    return
 }
 
 set re "value => 126, another_value => 12, color => green"
index 88f2478d7e201ace2ffce540657dcc5df155a949..8ba41d5c8686d0769ec53426615493baf5f07985 100644 (file)
@@ -31,27 +31,27 @@ runto "pck.adb:$bp_location"
 # Insert a watchpoint on local variable "result"
 
 gdb_test "watch result" \
-        ".*atchpoint \[0-9\]+: result"
+    ".*atchpoint \[0-9\]+: result"
 
 # Insert a breakpoint we'll reach after returning from the current
 # function.
 
 set bp_location [gdb_get_line_number "Do_Nothing" ${testdir}/foo_p708_025.adb]
 gdb_test "break foo_p708_025.adb:$bp_location" \
-        "Breakpoint \[0-9\]+ at.*: file .*foo_p708_025.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at.*: file .*foo_p708_025.adb, line \[0-9\]+."
 
 # This breakpoint will be there to stop us after we test what happens
 # during a continue (see below...)
 
 gdb_test "break pck.increment" \
-        "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+."
+    "Breakpoint \[0-9\]+ at.*: file .*pck.adb, line \[0-9\]+."
 
 # Continue until we reach our watchpoint.  It isn't strictly necessary
 # for our purpose that the watchpoint actually triggers, but this shows
 # that the watchpoint exists and is active.
 gdb_test "cont" \
-        ".*atchpoint \[0-9\]+: result.*Old value = 8.*New value = 64.*" \
-        "continuing to watchpoint hit"
+    ".*atchpoint \[0-9\]+: result.*Old value = 8.*New value = 64.*" \
+    "continuing to watchpoint hit"
 
 # Continue again.  We should be stopped at the (internal) breakpoint
 # that we setup to delete the watchpoint as soon as the program leaves
@@ -66,18 +66,18 @@ gdb_test \
 # (on the call to Do_Nothing) we set earlier.
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+.*Do_Nothing.*" \
-        "continuing to breakpoint on call to Do_Nothing"
+    "Breakpoint \[0-9\]+.*Do_Nothing.*" \
+    "continuing to breakpoint on call to Do_Nothing"
 
 # Do a next, to verify that it works...
 
 gdb_test "next" \
-        ".* Call_Me;" \
-        "next to call to Call_Me"
+    ".* Call_Me;" \
+    "next to call to Call_Me"
 
 # And finally, one more continue.
 
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+.*pck\\.increment.*" \
-        "continuing to breakpoint in pck.increment"
+    "Breakpoint \[0-9\]+.*pck\\.increment.*" \
+    "continuing to breakpoint in pck.increment"
index caf11fd6221003ea718294e222eda0eb6e44e97a..a07455e77194bfcc144dedfdadb0d1305e08d169 100644 (file)
@@ -20,51 +20,51 @@ require allow_ada_tests
 standard_ada_testfile a
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/a.adb]
 if {![runto "a.adb:$bp_location"]} {
-  return
+    return
 }
 
 # Verify that assigning to Nnn (a basic string) works...
 
 gdb_test "print nnn" \
-        "= \"12345\"" \
-        "print nnn before assignment"
+    "= \"12345\"" \
+    "print nnn before assignment"
 
 gdb_test_no_output "set variable nnn := \"qcyom\""
 
 gdb_test "print nnn" \
-        "= \"qcyom\"" \
-        "print nnn after assignment"
+    "= \"qcyom\"" \
+    "print nnn after assignment"
 
 # Same with Www (a wide string)...
 
 gdb_test "print www" \
-        "= \"12345\"" \
-        "print www before assignment"
+    "= \"12345\"" \
+    "print www before assignment"
 
 gdb_test_no_output "set variable www := \"zenrk\""
 
 gdb_test "print www" \
-        "= \"zenrk\"" \
-        "print www after assignment"
+    "= \"zenrk\"" \
+    "print www after assignment"
 
 # Same with Rws (a wide wide string)...
 
 gdb_test "print rws" \
-        "= \"12345\"" \
-        "print rws before assignment"
+    "= \"12345\"" \
+    "print rws before assignment"
 
 gdb_test_no_output "set variable rws := \"ndhci\""
 
 gdb_test "print rws" \
-        "= \"ndhci\"" \
-        "print rws after assignment"
+    "= \"ndhci\"" \
+    "print rws after assignment"
 
 # Also, check that GDB doesn't get tricked if we assign to Www a
 # string twice the length of Www.  The debugger should reject the
@@ -72,7 +72,7 @@ gdb_test "print rws" \
 # used to get tricked because the array size was the same).
 
 gdb_test "set variable www := \"1#2#3#4#5#\"" \
-        "cannot assign arrays of different length"
+    "cannot assign arrays of different length"
 
 # However, reassigning an array of a different length should work when
 # the LHS is a convenience variable.
index 9004fa7f9896d37dfb516e099f07199ad154a079..f94f94a523f1773b4af912951d399211c8c64aed 100644 (file)
@@ -20,13 +20,13 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=-O1]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 if {![runto_main]} {
-  return
+    return
 }
 
 gdb_breakpoint "call_me"
index 28405c6f9af4c9e80f5da512f45b8aa9e2b11f1e..ad83bc194b7491742254f3c42df494112ad017de 100644 (file)
@@ -36,5 +36,5 @@ if { [gdb_start_cmd] < 0 } {
 }
 
 gdb_test "" \
-        "dummy \\(\\) at .*dummy.adb.*" \
-        "start"
+    "dummy \\(\\) at .*dummy.adb.*" \
+    "start"
index d342521f445b5aa62ac16f3bb5273acf9e93ce89..3ab248ba009bf8aa73bab319ba980a3a210a595f 100644 (file)
@@ -27,7 +27,7 @@ clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/prog.adb]
 if {![runto "prog.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "ptype value" [string_to_regexp "type = array (1 .. 3) of integer"]
index 412d1bf30fb21ebc37917ebb630ae4d4bbfc59cf..0d49ee6d2e4a31c6f0fef4868fd2c06a413f7cdc 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo_p211_061
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,13 +29,13 @@ set bp_location [gdb_get_line_number "STOP" ${testdir}/foo_p211_061.adb]
 runto "foo_p211_061.adb:$bp_location"
 
 gdb_test "print my_str = my_str" \
-        " = true"
+    " = true"
 
 gdb_test "print my_str = \"ABCD\"" \
     " = true"
 
 gdb_test "print my_str = \"EFGH\"" \
-        " = false"
+    " = false"
 
 gdb_test "print my_str = \"AB\"" \
-        " = false"
+    " = false"
index ee644aa9fa8d9a4bac577d68c35db397be68ce95..86cabe15ecce429c522c1ecd83a511099f81412f 100644 (file)
@@ -22,7 +22,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 9bea50a469d54f14d012aa9112bc83139729acd8..31afe414e0ee9b6e351a8b25d058d63a5d8b5388 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -44,7 +44,7 @@ gdb_test_multiple {print "a" = "a"} $test {
 # Verify that we can compare a string slice with another string.
 
 gdb_test "print String_Var (1 .. 3) = \"Hel\"" \
-        "= true"
+    "= true"
 
 gdb_test "print String_Var (1 .. 3) = \"hel\"" \
-        "= false"
+    "= false"
index 48ead17ccfca657c9584a80dbfffe3edc859745a..8c85f96fc05f9a03ea20066e3d3feebabae8c285 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile parse
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/parse.adb]
 if {![runto "parse.adb:$bp_location"]} {
-  return
+    return
 }
 
 # Print MY_STR.  Since the string has not been initialized, including
index 515479ec7c9fa005a2ebc0164812128fd31dfcf7..0e8a9aa976c565f6456d5f35a4c8ab802b20a653 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile subv
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index b1c310637ae99e6db3a834e4c3f9cf1a7e5ce155..a97979f2461457068a76ea378daf7a593e87927c 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -36,17 +36,17 @@ set menu [multi_line "Multiple matches for integervar" \
 
 set test_name "multiple matches for symbol integervar"
 gdb_test_multiple "print integervar" "$test_name" \
-{
-      -re "$menu" {
-         pass "$test_name"
-      }
-
-      default {
-         fail "$test_name"
-      }
-}
+    {
+       -re "$menu" {
+           pass "$test_name"
+       }
+
+       default {
+           fail "$test_name"
+       }
+    }
 
 # Select the first choice from the multiple-choice menu above.
 gdb_test "1" \
-        "= 48" \
-        "select first choice from multiple-choice menu"
+    "= 48" \
+    "select first choice from multiple-choice menu"
index 9f758bf4aec0760272eb29833dd1c0c83dacf4b5..52967ade4a71760d5cb87bd41d9b2c2403a1217e 100644 (file)
@@ -20,15 +20,15 @@ require allow_ada_tests
 standard_ada_testfile p
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/p.adb]
 if {![runto "p.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print w.e.all" \
-        "= \\(month => 8, year => 1974\\)"
+    "= \\(month => 8, year => 1974\\)"
index 65c0fd3f9fa6d05ab98701692835b988a646e8d6..54098f8dc0c8d8465beaf9d8229675f80573b3ed 100644 (file)
@@ -23,7 +23,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 2d91e5077d34998701264bde49c41dcde2dcf3ef..4d0014a3de238deddb0d3f77b1c9711e2a36c5d6 100644 (file)
@@ -22,7 +22,7 @@ require gnat_runtime_has_debug_info
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -34,19 +34,19 @@ runto "foo.adb:$bp_location"
 # class-wide.
 
 gdb_test "ptype segm" \
-        [multi_line "type = new pck\\.object with record" \
-                    "    width: integer;" \
-                    "end record" ]
+    [multi_line "type = new pck\\.object with record" \
+        "    width: integer;" \
+        "end record" ]
 
 gdb_test "print segm" \
-        "= \\(position => 74, width => 8\\)"
+    "= \\(position => 74, width => 8\\)"
 
 # Now, test printing of an class-wide object.
 
 gdb_test "ptype obj" \
-        [multi_line "type = new pck\\.object with record" \
-                    "    width: integer;" \
-                    "end record" ]
+    [multi_line "type = new pck\\.object with record" \
+        "    width: integer;" \
+        "end record" ]
 
 gdb_test "print obj" \
-        "= \\(position => 74, width => 8\\)"
+    "= \\(position => 74, width => 8\\)"
index eb7fee19541330c36a0792c3f29850aa491b427a..27b74671050852326ae40241692ad14dab9661ac 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 # Insert a breakpoint at LOC, and run the program expecting us to
@@ -36,18 +36,18 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" }
 # order to test one given linespec under multiple conditions.
 
 proc test_bp { loc msg } {
-   gdb_test "break $loc" \
-     "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*pck.adb, line \[0-9\]+\\." \
-     "break $loc - $msg"
+    gdb_test "break $loc" \
+       "Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: file .*pck.adb, line \[0-9\]+\\." \
+       "break $loc - $msg"
 
-   gdb_run_cmd
-   gdb_test "" \
-     "Breakpoint \[0-9\]+, pck\\.dummy_task (.*)" \
-     "run to $loc - $msg"
+    gdb_run_cmd
+    gdb_test "" \
+       "Breakpoint \[0-9\]+, pck\\.dummy_task (.*)" \
+       "run to $loc - $msg"
 }
 
 set all_linespecs { "pck.dummy_task" "dummy_task"
-                   "pck.adb:pck.dummy_task" "pck.adb:dummy_task"}
+    "pck.adb:pck.dummy_task" "pck.adb:dummy_task"}
 
 # First, test the linespecs when the associated symtab hasn't been
 # expanded yet.
index fb92844cb24b8739ab5b422b4f2655b84b07ee54..b10c93a7c2b05e71ad6ac54d53642a4899208174 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests gcore_cmd_available
 standard_ada_testfile crash
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -38,7 +38,7 @@ if {![runto request_for_crash]} {
 set corefile [standard_output_file crash.gcore]
 set core_supported [gdb_gcore_cmd "$corefile" "save a corefile"]
 if {!$core_supported} {
-  return
+    return
 }
 
 # Now that the core file has been created, we can start the real
@@ -56,14 +56,14 @@ if { $core_loaded == -1 } {
 # First, switch to task 1.
 
 gdb_test "task 1" \
-        "crash\\.request_for_crash \\(\\) at .*crash\\.adb:$decimal.*"
+    "crash\\.request_for_crash \\(\\) at .*crash\\.adb:$decimal.*"
 
 
 gdb_test "info tasks" \
-        [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
-                    "\\*\\s+1\\s+.*main_task" \
-                    "\\s+2.*my_t"] \
-        "info tasks after switching to task 1"
+    [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
+        "\\*\\s+1\\s+.*main_task" \
+        "\\s+2.*my_t"] \
+    "info tasks after switching to task 1"
 
 # Switch to task 2. Unlike in the case where we tested the switch to
 # task 1, don't check the location where the debugger says the program
@@ -73,10 +73,10 @@ gdb_test "info tasks" \
 # we will verify right after with an additional test that the current
 # task is now task 2.
 gdb_test "task 2" \
-        "\\\[Switching to task 2 \"my_t\"\\\].*"
+    "\\\[Switching to task 2 \"my_t\"\\\].*"
 
 gdb_test "info tasks" \
-        [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
-                    "\\s+1\\s+.*main_task" \
-                    "\\*\\s+2.*my_t"] \
-        "info tasks after switching to task 2"
+    [multi_line "\\s+ID\\s+TID\\s+P-ID\\s+Pri\\s+State\\s+Name" \
+        "\\s+1\\s+.*main_task" \
+        "\\*\\s+2.*my_t"] \
+    "info tasks after switching to task 2"
index 0cfd3b759e5ba8a91e88b7d8ffd70db9ed931ad2..a39773f492521b56e061477e49bef82d4fa54cb9 100644 (file)
@@ -24,7 +24,7 @@ require allow_hw_watchpoint_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index ad1b7d8642c9cf73ea1eb8e43eee6b836bcd4558..9862663d566ce806b342c2100a361341e71dcae6 100644 (file)
@@ -22,7 +22,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -33,13 +33,13 @@ runto "foo.adb:$bp_location"
 # Make sure that all tasks appear in the "info tasks" listing, and
 # that the active task is the environment task.
 gdb_test "info tasks" \
-        [join {" +ID +TID P-ID Pri State +Name" \
-               "\\* +1 .* main_task" \
-               " +2 .* task_list\\(1\\)" \
-               " +3 .* task_list\\(2\\)" \
-               " +4 .* task_list\\(3\\)"} \
-              "\r\n"] \
-        "info tasks before inserting breakpoint"
+    [join {" +ID +TID P-ID Pri State +Name" \
+              "\\* +1 .* main_task" \
+              " +2 .* task_list\\(1\\)" \
+              " +3 .* task_list\\(2\\)" \
+              " +4 .* task_list\\(3\\)"} \
+        "\r\n"] \
+    "info tasks before inserting breakpoint"
 
 # Confirm that the "info threads" output lines up with the tasks list.
 gdb_test "info threads" \
@@ -159,19 +159,19 @@ if {[allow_guile_tests]} {
 # task 3 will hit our breakpoint, and GDB is expected to stop at that
 # point.  Also make sure that GDB reports the correct breakpoint number.
 gdb_test "continue" \
-        ".*Breakpoint $bp_number, foo.break_me \\(\\).*" \
-        "continue to breakpoint"
+    ".*Breakpoint $bp_number, foo.break_me \\(\\).*" \
+    "continue to breakpoint"
 
 # Check that it is indeed task 3 that hit the breakpoint by checking
 # which is the active task.
 gdb_test "info tasks" \
-        [join {" +ID +TID P-ID Pri State +Name" \
-               " +1 .* main_task" \
-               " +2 .* task_list\\(1\\)" \
-               "\\* +3 .* task_list\\(2\\)" \
-               " +4 .* task_list\\(3\\)"} \
-              "\r\n"] \
-        "info tasks after hitting breakpoint"
+    [join {" +ID +TID P-ID Pri State +Name" \
+              " +1 .* main_task" \
+              " +2 .* task_list\\(1\\)" \
+              "\\* +3 .* task_list\\(2\\)" \
+              " +4 .* task_list\\(3\\)"} \
+        "\r\n"] \
+    "info tasks after hitting breakpoint"
 
 # Now, resume the execution and make sure that GDB does not stop when
 # task 4 hits the breakpoint. Continuing thus results in our program
index 0ba50a8b43ec2a6edf99e4bba15a290ccf46ac3d..1f306139a36f46d585c6672c09d5d0c220b3c4ad 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -31,9 +31,9 @@ clean_restart ${testfile}
 # The actual value printed is of no interest in this testcase.
 
 gdb_test "print short_integer'first" \
-        "= -\[0-9\]+" \
-        "print short-integer'first"
+    "= -\[0-9\]+" \
+    "print short-integer'first"
 
 gdb_test "print short_integer'last" \
-        "= \[0-9\]+" \
-        "print short-integer'last"
+    "= \[0-9\]+" \
+    "print short-integer'last"
index c8c12822a4e005d16388a32f60dc3c40461ad81e..f90f1d7acc9d9df925528ee54edc9f57c5d52b44 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo_n207_004
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index c8ea13c8b3e7ce9637280ac65d1e1eaf73daaf8a..713f4344dcb55479846ff11a62e20b4a1583170a 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile assign
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -29,19 +29,19 @@ set bp_location [gdb_get_line_number "START" ${testdir}/assign.adb]
 runto "assign.adb:$bp_location"
 
 gdb_test "p q" \
-        "= \\(2, 3, 5, 7, 11\\)" "initial value of q"
+    "= \\(2, 3, 5, 7, 11\\)" "initial value of q"
 
 gdb_test_no_output "set \$addr := q'address" \
-        "save q'address in convenience variable"
+    "save q'address in convenience variable"
 
 gdb_test "p {Integer} \$addr" \
-        "= 2" \
-        "print {Integer} \$addr"
+    "= 2" \
+    "print {Integer} \$addr"
 
 # Now change the value at $addr using the same "{TYPE}" syntax.
 
 gdb_test_no_output "set {Integer} \$addr := 19" \
-        "set {Integer} \$addr := 19"
+    "set {Integer} \$addr := 19"
 
 gdb_test "p q" \
-        "= \\(19, 3, 5, 7, 11\\)" "modified value of q"
+    "= \\(19, 3, 5, 7, 11\\)" "modified value of q"
index f806d94d274cda16a12a95d09a8380c4cfda0eff..1acf990008214601d98e2cba800d5f5d60d23e0a 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile parse
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 83b6606e01713ce857a843c78a4472c32339e724..d0c389f986375baab7d0d7c4d62885a2e45894a5 100644 (file)
@@ -23,7 +23,7 @@ require allow_ada_tests
 standard_ada_testfile parse
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -35,4 +35,4 @@ runto "parse.adb:$bp_location"
 
 # Check that printing uninitialized variables does not crash the debugger.
 gdb_test "info locals" \
-        ".*"
+    ".*"
index f0bd18c12ecfb597108f80998698f86c5f42b14f..40fa75e15e9b4d858d0385978799d15fb46b396b 100644 (file)
@@ -23,7 +23,7 @@ require allow_ada_tests
 standard_ada_testfile main
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 0878d46fdf52fbb8b6e095bd2e505a18ad12bb05..c7fa8c6536221dc37fb74ac5f7ed21be1f932f22 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile foo_o115_002
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index c58efdf7bb5ea7fdf3d0ff1b78fea88b7251ed35..53643e0fe5b04c69cf2448fc54c120164d24aa93 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile var_arr_typedef
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
@@ -37,10 +37,10 @@ set vb "\\($rb, $rb, $ra, $ra\\)"
 set a "\\($va, $va, $vb, $vb\\)"
 
 gdb_test "print va" \
-        " = $va"
+    " = $va"
 
 gdb_test "print vb" \
-        " = $vb"
+    " = $vb"
 
 gdb_test "print a" \
-        " = $a"
+    " = $a"
index 3861f0dcd8371ee0292564b4a7c2f734a30678e4..ff032a3dec3403d874870e2282d3369f6009e9fd 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile proc
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable debug] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 3cc613e12494fff254d9a51ec3cb44dd5080d444..134d1bae594a084fe8baa6c13122a9b3c7ad0833 100644 (file)
@@ -32,7 +32,7 @@ standard_ada_testfile foo
 # making guarantees beyond -Og though, so test that.
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug optimize=-Og]] != ""} {
-  return
+    return
 }
 
 clean_restart ${testfile}
index bb877e81be36b2b0104de5e994417b0611db49bc..11eb1fe2772652a6da8186f0cdbc8c4a43b54ad7 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile vsizelim
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/vsizelim.adb]
 if {![runto "vsizelim.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "set varsize-limit 16" \
index 054431a16d3102700c17be8ad5f5c4279ebfedfe..0f7d9bbb5ef657a63b99cddfcde00a185150aacc 100644 (file)
@@ -29,10 +29,10 @@ set bp_location [gdb_get_line_number "Set breakpoint here" ${testdir}/vla.adb]
 runto "vla.adb:$bp_location"
 
 gdb_test "print r00" \
-        "= \\(l1 => 0, l2 => 0, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
+    "= \\(l1 => 0, l2 => 0, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
 gdb_test "print r01" \
-        "= \\(l1 => 0, l2 => 1, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(20\\), i3 => 3\\)"
+    "= \\(l1 => 0, l2 => 1, i1 => 1, a1 => \\(\\), i2 => 2, a2 => \\(20\\), i3 => 3\\)"
 gdb_test "print r10" \
-        "= \\(l1 => 1, l2 => 0, i1 => 1, a1 => \\(10\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
+    "= \\(l1 => 1, l2 => 0, i1 => 1, a1 => \\(10\\), i2 => 2, a2 => \\(\\), i3 => 3\\)"
 gdb_test "print r22" \
-        "= \\(l1 => 2, l2 => 2, i1 => 1, a1 => \\(10, 10\\), i2 => 2, a2 => \\(20, 20\\), i3 => 3\\)"
+    "= \\(l1 => 2, l2 => 2, i1 => 1, a1 => \\(10, 10\\), i2 => 2, a2 => \\(20, 20\\), i3 => 3\\)"
index 12edcb516dad5fc8a3f4ea94b18fcc3d138cbe14..6ad4dd8c39d3b51baf78034ae4a547041895c6c3 100644 (file)
@@ -20,7 +20,7 @@ require allow_ada_tests
 standard_ada_testfile voidctx
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
index 26099e45d0adb441a43a6cbe37d3d3793e2d9546..5323247bfbb21c7edc1d59fb942398dd7d299365 100644 (file)
@@ -31,14 +31,14 @@ runto "watch.adb:$bp_location"
 # Insert a watchpoint on argument X
 
 gdb_test "watch x" \
-        ".*atchpoint \[0-9\]+: x" \
-        "set watchpoint on function argument X"
+    ".*atchpoint \[0-9\]+: x" \
+    "set watchpoint on function argument X"
 
 # Then insert a breakpoint at the location we'd like to continue to...
 set bp_location [gdb_get_line_number "BREAK2" ${testdir}/watch.adb]
 gdb_test "break watch.adb:$bp_location" \
-        "Breakpoint \[0-9\]+ at.*: file .*watch.adb, line \[0-9\]+." \
-        "insert second breakpoint in watch.adb"
+    "Breakpoint \[0-9\]+ at.*: file .*watch.adb, line \[0-9\]+." \
+    "insert second breakpoint in watch.adb"
 
 # Continue again.  We should be stopped at the (internal) breakpoint
 # that we setup to delete the watchpoint as soon as the program leaves
@@ -53,5 +53,5 @@ gdb_test \
 # we inserted.
 
 gdb_test "cont" \
-        "Breakpoint \[0-9\]+, watch \\(\\).*" \
-        "continuing to second breakpoint"
+    "Breakpoint \[0-9\]+, watch \\(\\).*" \
+    "continuing to second breakpoint"
index f080829decb6625bdd0db6159f593695a0df8555..2e1c36b073d1c2780f2df114c24fd5bf79d6486c 100644 (file)
@@ -31,7 +31,7 @@ runto "foo_ra10_006.adb:$bp_location"
 # Insert a watchpoint on argument X
 
 gdb_test "watch -location pck.global_var" \
-        ".*atchpoint \[0-9\]+: -location pck.global_var"
+    ".*atchpoint \[0-9\]+: -location pck.global_var"
 
 # Continue again.  We should be stopped at the (internal) breakpoint
 # that we setup to delete the watchpoint as soon as the program leaves
index f93d1908f47778908760def3244ec2dadedcbc2c..366fb9f84910cc9e7e4840053f5117bcbd4d73ad 100644 (file)
@@ -20,22 +20,22 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "STOP" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 # Accept "foo." prefix for older versions of GNAT.
 gdb_test "whatis full" \
-        "type = (foo\\.)?full_table"
+    "type = (foo\\.)?full_table"
 
 gdb_test "print full" \
-        " = \\(144, 233, 377, 610, 987\\)"
+    " = \\(144, 233, 377, 610, 987\\)"
 
 gdb_test "whatis $" \
-        "type = (foo\\.)?full_table"
+    "type = (foo\\.)?full_table"
index 198394c00f489b89ccd2be109754de106c537319..13175d595f70e16320dc438e707129bef72b95f5 100644 (file)
@@ -20,14 +20,14 @@ require allow_ada_tests
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set bp_location [gdb_get_line_number "START" ${testdir}/foo.adb]
 if {![runto "foo.adb:$bp_location"]} {
-  return
+    return
 }
 
 gdb_test "print some_easy" "= 74 'J'"
index f3e7bed3bd7c1305065849488f426db23dc81a52..ed6734576e86ad86c31c41ac4899d9f9351b10e6 100644 (file)
@@ -21,17 +21,17 @@ require ada_shared_link
 standard_ada_testfile foo
 
 if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug additional_flags=-bargs additional_flags=-shared additional_flags=-margs]] != "" } {
-  return
+    return
 }
 
 clean_restart ${testfile}
 
 set loc [gdb_get_line_number "Integer" ${testdir}/foo.adb]
 gdb_test "info line foo.adb:$loc" \
-        "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
-        "info line on variable declaration"
+    "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
+    "info line on variable declaration"
 
 set loc [gdb_get_line_number "Do_Nothing" ${testdir}/foo.adb]
 gdb_test "info line foo.adb:$loc" \
-        "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
-        "info line on Do_Nothing call"
+    "Line $decimal of \".*foo\\.adb\" starts at address $hex <_ada_foo\\+$decimal> and ends at $hex <_ada_foo\\+$decimal>\\." \
+    "info line on Do_Nothing call"