aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ada/uninitialized_vars.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/uninitialized_vars.exp
parent8f7e195f62ca83d6d8e93d75025ff8c06cae6f82 (diff)
downloadbinutils-8ed5dd9e5e058d79413a6b95baa9daac58fa0396.zip
binutils-8ed5dd9e5e058d79413a6b95baa9daac58fa0396.tar.gz
binutils-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/uninitialized_vars.exp')
-rw-r--r--gdb/testsuite/gdb.ada/uninitialized_vars.exp10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.ada/uninitialized_vars.exp b/gdb/testsuite/gdb.ada/uninitialized_vars.exp
index f590579..b6ec6fa 100644
--- a/gdb/testsuite/gdb.ada/uninitialized_vars.exp
+++ b/gdb/testsuite/gdb.ada/uninitialized_vars.exp
@@ -39,14 +39,8 @@ gdb_load ${binfile}
# Start the program; we should land in the program main procedure, before
# variable initialization.
-if { [gdb_start_cmd] < 0 } {
- untested start
- return -1
-}
-
-gdb_test "" \
- "parse \\(\\) at .*parse.adb.*" \
- "start"
+set bp_location [gdb_get_line_number "START" ${testdir}/parse.adb]
+runto "parse.adb:$bp_location"
# Check that printing uninitialized variables does not crash the debugger.
gdb_test "info locals" \