if { [gdb_compile "$srcdir/${subdir}/$srcfile $objfile1 $objfile2" \
$binfile executable $opts] != "" } {
- return -1
+ return
}
clean_restart ${testfile}
if {[gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile}1.o \
object {debug nowarnings optimize=-O0}] != ""} {
- return -1
+ return
}
# Compile .s files without debug information.
if {[gdb_compile ${srcdir}/${subdir}/$asm_file0 ${binfile}2.o \
object {nodebug}] != ""} {
- return -1
+ return
}
if {[gdb_compile ${srcdir}/${subdir}/$asm_file1 ${binfile}3.o \
object {nodebug}] != ""} {
- return -1
+ return
}
if {[gdb_compile [list ${binfile}1.o ${binfile}2.o ${binfile}3.o] \
"${binfile}" executable {}] != ""} {
- return -1
+ return
}
clean_restart $execfile
standard_testfile .cc
if {[prepare_for_testing "failed to prepare" $testfile $srcfile {debug c++}]} {
- return -1
+ return
}
# Disable the completion limit for the whole testcase.
if {[prepare_for_testing "failed to prepare" $testfile $srcfile \
{debug c++ additional_flags=-std=c++11}]} {
- return -1
+ return
}
# Disable the completion limit for the whole testcase.
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3 $srcfile4] $opts]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
#
if {[prepare_for_testing "failed to prepare" $exefile $srcfile \
{c++ debug nowarnings}]} {
- return -1
+ return
}
# Wrap this whole test in a namespace to avoid contaminating other tests.
# Fire up gdb.
if {![runto_main]} {
namespace delete $testfile
- return -1
+ return
}
# Test explicit linespecs, with and without conditions.
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile] {c++ debug}]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
gdb_test_no_output "set max-completions unlimited"
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile] $flags]} {
- return -1
+ return
}
# Tests below are about tab-completion, which doesn't work if readline
if { ![readline_is_used] } {
untested "no tab completion support without readline"
- return -1
+ return
}
gdb_test_no_output "set max-completions unlimited"
# another one.
if {[prepare_for_testing "failed to prepare" linespecs keywords.c]} {
- return -1
+ return
}
# PR gdb/12843
if {[prepare_for_testing "failed to prepare" $exefile \
[list $srcfile $srcfile2 $srcfile3] $opts]} {
- return -1
+ return
}
# Wrap the entire test in a namespace to avoid contaminating other tests.
# Fire up gdb.
if {![runto_main]} {
- return -1
+ return
}
# Turn off queries
set exefile $testfile
if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
# Turn off pending breakpoints to facilitate testing errors.
if {[prepare_for_testing "failed to prepare" $exefile \
[list $srcfile $baseone $basetwo] \
{debug nowarnings c++}]} {
- return -1
+ return
}
gdb_test_no_output "set multiple-symbols all" \
if {[prepare_for_testing "failed to prepare" $exefile $srcfile \
{debug nowarnings c++}]} {
- return -1
+ return
}
gdb_test_no_output "set listsize 1"
# "list header_two_func" does not set exactly the one line we want.
if {![runto header_two_func]} {
- return -1
+ return
}
gdb_test "info macro HEADER" "\r\n#define HEADER 2"
if {[prepare_for_testing "failed to prepare" $execfile \
[list $srcfile $baseone $basetwo] \
{debug nowarnings c++}]} {
- return -1
+ return
}
gdb_test "skip function dupname" \
{Function dupname will be skipped when stepping\.}
if {![runto_main]} {
- return -1
+ return
}
set test "dupname ignored from main"
{File thefile\.cc will be skipped when stepping\.}
if {![runto_main]} {
- return -1
+ return
}
gdb_test "step" "static int dupname .*" "step into dupname"
set exefile $testfile
if {[prepare_for_testing "failed to prepare" $exefile $srcfile {debug}]} {
- return -1
+ return
}
if {![runto_main]} {
- return 0
+ return
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]