Avoid the use of gdb_start_cmd in gdb.ada/*.exp testcases.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 6 Jan 2011 10:33:38 +0000 (10:33 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 6 Jan 2011 10:33:38 +0000 (10:33 +0000)
commit8ed5dd9e5e058d79413a6b95baa9daac58fa0396
tree49f5e98c487bd8ecabbfb49b2d426e39d799b40a
parent8f7e195f62ca83d6d8e93d75025ff8c06cae6f82
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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/exec_changed.exp
gdb/testsuite/gdb.ada/null_record.exp
gdb/testsuite/gdb.ada/null_record/null_record.adb
gdb/testsuite/gdb.ada/print_pc.exp
gdb/testsuite/gdb.ada/start.exp
gdb/testsuite/gdb.ada/start/dummy.adb
gdb/testsuite/gdb.ada/uninitialized_vars.exp
gdb/testsuite/gdb.ada/uninitialized_vars/parse.adb