gdb.ada/info_exc.exp,mi_exc_info.exp: handle runtimes with full debug info.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.ada / start.exp
index 682352097356cab613f8dee1c82b331b3a09636a..7e282dcbf1c19605cea79206c0c4cf029810398d 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 2005, 2007 Free Software Foundation, Inc.
+# Copyright 2005-2013 Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if $tracelevel then {
-    strace $tracelevel
-}
-
 load_lib "ada.exp"
 
-set testdir "start"
-set testfile "${testdir}/dummy"
-set srcfile ${srcdir}/${subdir}/${testfile}.adb
-set binfile ${objdir}/${subdir}/${testfile}
+if { [skip_ada_tests] } { return -1 }
+
+# This testcase verifies the behavior of the `start' command, which
+# does not work when we use the gdb stub...
+if [target_info exists use_gdb_stub] {
+    untested start.exp
+    return
+}
+
+standard_ada_testfile dummy
 
-file mkdir ${objdir}/${subdir}/${testdir}
-if {[gdb_compile_ada "${srcfile}" "${binfile}" executable [list debug ]] != "" } {
-  return -1
+if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
+    return -1
 }
 
-gdb_exit
-gdb_start
-gdb_reinitialize_dir $srcdir/$subdir
-gdb_load ${binfile}
+clean_restart ${testfile}
 
 # Verify that "start" lands inside the right procedure.
 if { [gdb_start_cmd] < 0 } {
This page took 0.025028 seconds and 4 git commands to generate.