summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.opt
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-06-09 16:45:48 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-06-24 15:07:29 +0100
commit9704b8b4bc58f4f464961cca97d362fd33740ce8 (patch)
treec5ecc9e90a9e915a69bf5b209d13979fc6e349db /gdb/testsuite/gdb.opt
parentef7a6b977bf5e8499734a3b8df48ce2ca690cf57 (diff)
downloadbinutils-gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.gz
gdb/testsuite: remove unneeded calls to get_compiler_info
It is not necessary to call get_compiler_info before calling test_compiler_info, and, after recent commits that removed setting up the gcc_compiled, true, and false globals from get_compiler_info, there is now no longer any need for any test script to call get_compiler_info directly. As a result every call to get_compiler_info outside of lib/gdb.exp is redundant, and this commit removes them all. There should be no change in what is tested after this commit.
Diffstat (limited to 'gdb/testsuite/gdb.opt')
-rw-r--r--gdb/testsuite/gdb.opt/clobbered-registers-O2.exp6
-rw-r--r--gdb/testsuite/gdb.opt/inline-bt.exp1
-rw-r--r--gdb/testsuite/gdb.opt/inline-cmds.exp1
-rw-r--r--gdb/testsuite/gdb.opt/inline-locals.exp1
-rw-r--r--gdb/testsuite/gdb.opt/solib-intra-step.exp4
5 files changed, 0 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
index b38f3642840..66ec5c85d21 100644
--- a/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
+++ b/gdb/testsuite/gdb.opt/clobbered-registers-O2.exp
@@ -20,12 +20,6 @@
standard_testfile .c -2.c -3.c
-# What compiler are we using?
-#
-if [get_compiler_info] {
- return -1
-}
-
if {[prepare_for_testing "failed to prepare" $testfile \
[list $srcfile $srcfile2 $srcfile3] \
{debug optimize=-O2 nowarnings}]} {
diff --git a/gdb/testsuite/gdb.opt/inline-bt.exp b/gdb/testsuite/gdb.opt/inline-bt.exp
index faa7686a9b7..bfd93a85c08 100644
--- a/gdb/testsuite/gdb.opt/inline-bt.exp
+++ b/gdb/testsuite/gdb.opt/inline-bt.exp
@@ -23,7 +23,6 @@ if {[prepare_for_testing "failed to prepare" $testfile \
runto_main
-get_compiler_info
get_debug_format
if { [skip_inline_frame_tests] } {
untested "skipping inline frame tests"
diff --git a/gdb/testsuite/gdb.opt/inline-cmds.exp b/gdb/testsuite/gdb.opt/inline-cmds.exp
index 17ad83672d1..1d434bc20f6 100644
--- a/gdb/testsuite/gdb.opt/inline-cmds.exp
+++ b/gdb/testsuite/gdb.opt/inline-cmds.exp
@@ -27,7 +27,6 @@ gdb_test_no_output "set listsize 1"
runto_main
-get_compiler_info
get_debug_format
if { [skip_inline_frame_tests] } {
untested "skipping inline frame tests"
diff --git a/gdb/testsuite/gdb.opt/inline-locals.exp b/gdb/testsuite/gdb.opt/inline-locals.exp
index 68c45f0fe31..498ebb5085a 100644
--- a/gdb/testsuite/gdb.opt/inline-locals.exp
+++ b/gdb/testsuite/gdb.opt/inline-locals.exp
@@ -22,7 +22,6 @@ if {[prepare_for_testing "failed to prepare" $testfile \
runto_main
-get_compiler_info
get_debug_format
if { [skip_inline_var_tests] } {
untested inline-bt.exp
diff --git a/gdb/testsuite/gdb.opt/solib-intra-step.exp b/gdb/testsuite/gdb.opt/solib-intra-step.exp
index 1f824521556..0acda6594c5 100644
--- a/gdb/testsuite/gdb.opt/solib-intra-step.exp
+++ b/gdb/testsuite/gdb.opt/solib-intra-step.exp
@@ -30,10 +30,6 @@ set srcfile ${srcdir}/${subdir}/${testfile}.c
set binfile [standard_output_file ${testfile}]
set bin_flags [list debug shlib=${binfile_lib}]
-if [get_compiler_info] {
- return -1
-}
-
if { [gdb_compile_shlib ${srcfile_lib} ${binfile_lib} $lib_flags] != ""
|| [gdb_compile ${srcfile} ${binfile} executable $bin_flags] != "" } {
untested "failed to compile"