* gdb.opt/clobbered-registers-O2.exp: Use standard_testfile,
prepare_for_testing. * gdb.opt/inline-break.exp: Use standard_testfile, prepare_for_testing. * gdb.opt/inline-bt.exp: Use standard_testfile, prepare_for_testing. * gdb.opt/inline-cmds.exp: Use standard_testfile, prepare_for_testing. * gdb.opt/inline-locals.exp: Use standard_testfile, prepare_for_testing.
This commit is contained in:
parent
e2fc92c6c7
commit
efc9d70a28
|
@ -1,3 +1,16 @@
|
||||||
|
2012-06-25 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
* gdb.opt/clobbered-registers-O2.exp: Use standard_testfile,
|
||||||
|
prepare_for_testing.
|
||||||
|
* gdb.opt/inline-break.exp: Use standard_testfile,
|
||||||
|
prepare_for_testing.
|
||||||
|
* gdb.opt/inline-bt.exp: Use standard_testfile,
|
||||||
|
prepare_for_testing.
|
||||||
|
* gdb.opt/inline-cmds.exp: Use standard_testfile,
|
||||||
|
prepare_for_testing.
|
||||||
|
* gdb.opt/inline-locals.exp: Use standard_testfile,
|
||||||
|
prepare_for_testing.
|
||||||
|
|
||||||
2012-06-25 Tom Tromey <tromey@redhat.com>
|
2012-06-25 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* gdb.asm/asm-source.exp: Use standard_output_file,
|
* gdb.asm/asm-source.exp: Use standard_output_file,
|
||||||
|
|
|
@ -18,9 +18,7 @@
|
||||||
# Test displaying call clobbered registers in optimized binaries.
|
# Test displaying call clobbered registers in optimized binaries.
|
||||||
# GDB should not show incorrect values.
|
# GDB should not show incorrect values.
|
||||||
|
|
||||||
set testfile clobbered-registers-O2
|
standard_testfile
|
||||||
set srcfile ${testfile}.c
|
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
|
||||||
|
|
||||||
# What compiler are we using?
|
# What compiler are we using?
|
||||||
#
|
#
|
||||||
|
@ -28,19 +26,11 @@ if [get_compiler_info] {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable [concat debug optimize=-O2 nowarnings]] != "" } {
|
if {[prepare_for_testing $testfile.exp $testfile $srcfile \
|
||||||
untested clobbered-registers-O2.exp
|
{debug optimize=-O2 nowarnings}]} {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
# use this to debug:
|
|
||||||
#log_user 1
|
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
if { ![runto start_sequence] } then {
|
if { ![runto start_sequence] } then {
|
||||||
fail "run to start_sequence"
|
fail "run to start_sequence"
|
||||||
return
|
return
|
||||||
|
|
|
@ -17,10 +17,9 @@
|
||||||
# mirrors this testcase, and should be updated if this testcase is
|
# mirrors this testcase, and should be updated if this testcase is
|
||||||
# changed.
|
# changed.
|
||||||
|
|
||||||
set basename "inline-break"
|
standard_testfile
|
||||||
set testfile $basename
|
|
||||||
|
|
||||||
if { [prepare_for_testing $testfile.exp $testfile $testfile.c \
|
if { [prepare_for_testing $testfile.exp $testfile $srcfile \
|
||||||
{debug optimize=-O2 additional_flags=-Winline}] } {
|
{debug optimize=-O2 additional_flags=-Winline}] } {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
@ -30,7 +29,7 @@ if { [prepare_for_testing $testfile.exp $testfile $testfile.c \
|
||||||
# The result should be a single-location breakpoint.
|
# The result should be a single-location breakpoint.
|
||||||
#
|
#
|
||||||
gdb_test "break func1" \
|
gdb_test "break func1" \
|
||||||
"Breakpoint.*at.* file .*$basename\\.c, line.*"
|
"Breakpoint.*at.* file .*$srcfile, line.*"
|
||||||
|
|
||||||
#
|
#
|
||||||
# func2 is a non-static inlined function that is called once.
|
# func2 is a non-static inlined function that is called once.
|
||||||
|
@ -46,7 +45,7 @@ gdb_test "break func2" \
|
||||||
# a single-location breakpoint.
|
# a single-location breakpoint.
|
||||||
#
|
#
|
||||||
gdb_test "break func3b" \
|
gdb_test "break func3b" \
|
||||||
"Breakpoint.*at.* file .*$basename\\.c, line.*"
|
"Breakpoint.*at.* file .*$srcfile, line.*"
|
||||||
|
|
||||||
#
|
#
|
||||||
# func4b is a static inlined function that is called once from
|
# func4b is a static inlined function that is called once from
|
||||||
|
|
|
@ -13,25 +13,14 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
set testfile "inline-bt"
|
standard_testfile .c inline-markers.c
|
||||||
set srcfile ${testfile}.c
|
|
||||||
set srcfile2 "inline-markers.c"
|
|
||||||
set fullsrcfile "${srcdir}/${subdir}/${srcfile}"
|
|
||||||
set fullsrcfile2 "${srcdir}/${subdir}/${srcfile2}"
|
|
||||||
set sources [list ${fullsrcfile} ${fullsrcfile2}]
|
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
|
||||||
|
|
||||||
if { [gdb_compile ${sources} ${binfile} \
|
if {[prepare_for_testing $testfile.exp $testfile \
|
||||||
executable {debug optimize=-O2 additional_flags=-Winline}] != "" } {
|
[list $srcfile $srcfile2] \
|
||||||
untested inline-bt.exp
|
{debug optimize=-O2 additional_flags=-Winline}]} {
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
runto_main
|
runto_main
|
||||||
|
|
||||||
get_compiler_info
|
get_compiler_info
|
||||||
|
|
|
@ -13,25 +13,13 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
set testfile "inline-cmds"
|
standard_testfile .c inline-markers.c
|
||||||
set srcfile "${testfile}.c"
|
|
||||||
set srcfile2 "inline-markers.c"
|
|
||||||
set fullsrcfile "${srcdir}/${subdir}/${srcfile}"
|
|
||||||
set fullsrcfile2 "${srcdir}/${subdir}/${srcfile2}"
|
|
||||||
set sources [list ${fullsrcfile} ${fullsrcfile2}]
|
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
|
||||||
|
|
||||||
if { [gdb_compile $sources ${binfile} \
|
if {[prepare_for_testing $testfile.exp $testfile \
|
||||||
executable {debug optimize=-O2}] != "" } {
|
[list $srcfile $srcfile2] {debug optimize=-O2}]} {
|
||||||
untested inline-cmds.exp
|
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
gdb_test_no_output "set listsize 1"
|
gdb_test_no_output "set listsize 1"
|
||||||
|
|
||||||
runto_main
|
runto_main
|
||||||
|
|
|
@ -13,25 +13,13 @@
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
set testfile "inline-locals"
|
standard_testfile .c inline-markers.c
|
||||||
set srcfile ${testfile}.c
|
|
||||||
set srcfile2 "inline-markers.c"
|
|
||||||
set fullsrcfile "${srcdir}/${subdir}/${srcfile}"
|
|
||||||
set fullsrcfile2 "${srcdir}/${subdir}/${srcfile2}"
|
|
||||||
set sources [list ${fullsrcfile} ${fullsrcfile2}]
|
|
||||||
set binfile ${objdir}/${subdir}/${testfile}
|
|
||||||
|
|
||||||
if { [gdb_compile ${sources} ${binfile} \
|
if {[prepare_for_testing $testfile.exp $testfile \
|
||||||
executable {debug optimize=-O2}] != "" } {
|
[list $srcfile $srcfile2] {debug optimize=-O2}]} {
|
||||||
untested inline-locals.exp
|
|
||||||
return -1
|
return -1
|
||||||
}
|
}
|
||||||
|
|
||||||
gdb_exit
|
|
||||||
gdb_start
|
|
||||||
gdb_reinitialize_dir $srcdir/$subdir
|
|
||||||
gdb_load ${binfile}
|
|
||||||
|
|
||||||
runto_main
|
runto_main
|
||||||
|
|
||||||
get_compiler_info
|
get_compiler_info
|
||||||
|
|
Loading…
Reference in New Issue