aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python
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.python
parentef7a6b977bf5e8499734a3b8df48ce2ca690cf57 (diff)
downloadgdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.zip
gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.gz
gdb-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.bz2
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.python')
-rw-r--r--gdb/testsuite/gdb.python/py-events.exp4
-rw-r--r--gdb/testsuite/gdb.python/py-finish-breakpoint.exp4
-rw-r--r--gdb/testsuite/gdb.python/py-format-string.exp4
-rw-r--r--gdb/testsuite/gdb.python/py-type.exp4
4 files changed, 0 insertions, 16 deletions
diff --git a/gdb/testsuite/gdb.python/py-events.exp b/gdb/testsuite/gdb.python/py-events.exp
index 2fdd216..a9ababb 100644
--- a/gdb/testsuite/gdb.python/py-events.exp
+++ b/gdb/testsuite/gdb.python/py-events.exp
@@ -27,10 +27,6 @@ set lib_opts debug
standard_testfile
set exec_opts [list debug shlib=$lib_sl]
-if [get_compiler_info] {
- return -1
-}
-
if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
diff --git a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
index 776549c..34e0a2b 100644
--- a/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
+++ b/gdb/testsuite/gdb.python/py-finish-breakpoint.exp
@@ -31,10 +31,6 @@ set lib_opts ""
standard_testfile
set exec_opts [list debug shlib=$lib_sl]
-if [get_compiler_info] {
- return -1
-}
-
if { [gdb_compile_shlib $libsrc $lib_sl $lib_opts] != ""
|| [gdb_compile $srcdir/$subdir/$srcfile $binfile executable $exec_opts] != ""} {
untested "failed to compile"
diff --git a/gdb/testsuite/gdb.python/py-format-string.exp b/gdb/testsuite/gdb.python/py-format-string.exp
index 7705a24..68a4a9c 100644
--- a/gdb/testsuite/gdb.python/py-format-string.exp
+++ b/gdb/testsuite/gdb.python/py-format-string.exp
@@ -20,10 +20,6 @@ load_lib gdb-python.exp
standard_testfile
-if [get_compiler_info c++] {
- return -1
-}
-
# Skip all tests if Python scripting is not enabled.
gdb_exit
gdb_start
diff --git a/gdb/testsuite/gdb.python/py-type.exp b/gdb/testsuite/gdb.python/py-type.exp
index 5613bc0..20f5084 100644
--- a/gdb/testsuite/gdb.python/py-type.exp
+++ b/gdb/testsuite/gdb.python/py-type.exp
@@ -20,10 +20,6 @@ load_lib gdb-python.exp
standard_testfile
-if [get_compiler_info c++] {
- return -1
-}
-
# Build inferior to language specification.
proc build_inferior {exefile lang} {
global srcdir subdir srcfile testfile hex