aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.ctf
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.ctf
parentef7a6b977bf5e8499734a3b8df48ce2ca690cf57 (diff)
downloadbinutils-9704b8b4bc58f4f464961cca97d362fd33740ce8.zip
binutils-9704b8b4bc58f4f464961cca97d362fd33740ce8.tar.gz
binutils-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.ctf')
-rw-r--r--gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp6
-rw-r--r--gdb/testsuite/gdb.ctf/multi.exp6
2 files changed, 0 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp b/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
index 72ee468..a43e36b 100644
--- a/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
+++ b/gdb/testsuite/gdb.ctf/cross-tu-cyclic.exp
@@ -31,12 +31,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
return 0
}
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
- return -1
-}
-
# Same thing with struct and union.
gdb_test "ptype struct A" "type = struct A \{\[\r\n\]+\[ \t\]+struct B \\*foo;\[\r\n\]+\}.*" "ptype structure A"
gdb_test "ptype struct B" "type = struct B \{\[\r\n\]+\[ \t\]+struct B \\*next;\[\r\n\]+\}.*" "ptype structure B"
diff --git a/gdb/testsuite/gdb.ctf/multi.exp b/gdb/testsuite/gdb.ctf/multi.exp
index 4ab2186..07fd10a 100644
--- a/gdb/testsuite/gdb.ctf/multi.exp
+++ b/gdb/testsuite/gdb.ctf/multi.exp
@@ -30,12 +30,6 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \
return 0
}
-# Create and source the file that provides information about the compiler
-# used to compile the test case.
-if [get_compiler_info] {
- return -1
-}
-
# Same thing with struct and union.
gdb_test "ptype struct A" "type = struct A \{\[\r\n\]+\[ \t\]+struct B \\*b;\[\r\n\]+\[ \t\]+struct A \\*next;\[\r\n\]+\}.*" "ptype structure A"
gdb_test "ptype struct B" "type = struct B \{\[\r\n\]+\[ \t\]+struct C \\*c;\[\r\n\]+\[ \t\]+int \\wombat;\[\r\n\]+\}.*" "ptype structure B"