aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/start.exp
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-01-06 10:33:38 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-01-06 10:33:38 +0000
commit8ed5dd9e5e058d79413a6b95baa9daac58fa0396 (patch)
tree49f5e98c487bd8ecabbfb49b2d426e39d799b40a /gdb/testsuite/gdb.ada/start.exp
parent8f7e195f62ca83d6d8e93d75025ff8c06cae6f82 (diff)
downloadgdb-8ed5dd9e5e058d79413a6b95baa9daac58fa0396.zip
gdb-8ed5dd9e5e058d79413a6b95baa9daac58fa0396.tar.gz
gdb-8ed5dd9e5e058d79413a6b95baa9daac58fa0396.tar.bz2
Avoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.
This command does not work when testing with GDBserver. So this patch changes the few tests that do not specifically test the `start' command, and replace calls to gdb_start_cmd with the usual `run LOC' approach. For the couple of testcases that do really test the `start' command, do an early return as UNTESTED instead of running this testcase. gdb/testsuite/ChangeLog: Add marker to be used as anchor for inserting breakpoints. * gdb.ada/null_record/null_record.adb: Add "-- START" comment. * gdb.ada/start/dummy.adb, gdb.ada/uninitialized_vars/parse.adb: Likewise. Remove uses of gdb_start_cmd. * gdb.ada/null_record.exp: Remove use of gdb_start_cmd. * gdb.ada/print_pc.exp, gdb.ada/uninitialized_vars.exp: Ditto. Do not run testcase if testing with GDBserver. * gdb.ada/exec_changed.exp, gdb.ada/start.exp: Abort as untested if testing with GDBserver.
Diffstat (limited to 'gdb/testsuite/gdb.ada/start.exp')
-rw-r--r--gdb/testsuite/gdb.ada/start.exp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.ada/start.exp b/gdb/testsuite/gdb.ada/start.exp
index 4307e42..2c000a8 100644
--- a/gdb/testsuite/gdb.ada/start.exp
+++ b/gdb/testsuite/gdb.ada/start.exp
@@ -21,6 +21,13 @@ load_lib "ada.exp"
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 exec_changed.exp
+ return
+}
+
set testdir "start"
set testfile "${testdir}/dummy"
set srcfile ${srcdir}/${subdir}/${testfile}.adb