gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 2 Jul 2013 20:06:12 +0000 (20:06 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Tue, 2 Jul 2013 20:06:12 +0000 (20:06 +0000)
* gdb.base/break-on-linker-gcd-function.exp: Replace
prepare_for_testing by build_executable_from_specs and clean_restart.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/break-on-linker-gcd-function.exp

index 58eaf208081fa09780229399dd8abf552f59b583..063489cbf23ae96fe4091a1cfc4116836757be3d 100644 (file)
@@ -1,3 +1,8 @@
+2013-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.base/break-on-linker-gcd-function.exp: Replace
+       prepare_for_testing by build_executable_from_specs and clean_restart.
+
 2013-06-27  Tom Tromey  <tromey@redhat.com>
 
        * gdb.base/testenv.exp, gdb.base/tui-layout.exp,
index 7a4ef83682ecb686af82ad15413d06dafa590091..f9b844fbf0632902845ac10501aff5e81482ffaa 100644 (file)
@@ -32,12 +32,15 @@ if [get_compiler_info "c++"] {
 }
 
 set additional_flags {-ffunction-sections -Wl,--gc-sections}
-if {[prepare_for_testing $testfile.exp $testfile $srcfile \
-        [list debug c++ additional_flags=$additional_flags]]} {
+if {[build_executable_from_specs $testfile.exp $testfile \
+       {c++ additional_flags=-Wl,--gc-sections} \
+       $srcfile {debug c++ additional_flags=-ffunction-sections}]} {
     untested $testfile.exp
     return -1
 }
 
+clean_restart $testfile
+
 # Single hex digit
 set xd {[0-9a-f]}