8ed5dd9e5e
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.
44 lines
1.4 KiB
Text
44 lines
1.4 KiB
Text
# Copyright 2004, 2007, 2008, 2009, 2010, 2011 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
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# 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"
|
|
|
|
if { [skip_ada_tests] } { return -1 }
|
|
|
|
set testdir "null_record"
|
|
set testfile "${testdir}/null_record"
|
|
set srcfile ${srcdir}/${subdir}/${testfile}.adb
|
|
set binfile ${objdir}/${subdir}/${testfile}
|
|
|
|
file mkdir ${objdir}/${subdir}/${testdir}
|
|
if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} {
|
|
return -1
|
|
}
|
|
|
|
gdb_exit
|
|
gdb_start
|
|
gdb_reinitialize_dir $srcdir/$subdir
|
|
gdb_load ${binfile}
|
|
|
|
set bp_location [gdb_get_line_number "START" ${testdir}/null_record.adb]
|
|
runto "null_record.adb:$bp_location"
|
|
|
|
gdb_test "ptype empty" \
|
|
"type = record null; end record" \
|
|
"ptype on null record"
|