Automatic date update in version.in
[binutils-gdb/blckswan.git] / gdb / testsuite / gdb.arch / ppc64-symtab-cordic.exp
blob9d02da739d61a7173b448458e98ceb1e774b121a
1 # Copyright 2015-2022 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 if {![istarget "powerpc*"] || ![is_lp64_target]} {
17     verbose "Skipping powerpc64 separate debug file symtab test."
18     return
21 standard_testfile
23 set kobz2file ${srcdir}/${subdir}/cordic.ko.bz2
24 set kofile [standard_output_file cordic.ko]
25 set kodebugbz2file ${srcdir}/${subdir}/cordic.ko.debug.bz2
26 set kodebugfile [standard_output_file cordic.ko.debug]
28 if {[catch "system \"bzip2 -dc ${kobz2file} >${kofile}\""] != 0} {
29     untested "failed bzip2 for ${kobz2file}"
30     return -1
32 if {[catch "system \"bzip2 -dc ${kodebugbz2file} >${kodebugfile}\""] != 0} {
33     untested "failed bzip2 for ${kodebugbz2file}"
34     return -1
37 gdb_exit
38 gdb_start
39 gdb_reinitialize_dir $srcdir/$subdir
41 # This test won't work properly if system debuginfo is installed.
42 # Test message is suppressed by "" as otherwise we could print PASS+UNTESTED
43 # result to gdb.sum making a false feeling the issue has been tested.
44 gdb_test_no_output "set debug-file-directory" ""
46 gdb_load ${kofile}
48 set test "show architecture"
49 gdb_test_multiple $test $test {
50     -re "\r\nThe target architecture is set to \"auto\" \\(currently \"powerpc:common64\"\\)\.\r\n$gdb_prompt $" {
51         pass $test
52     }
53     -re "\r\nThe target architecture is set to \"auto\" \\(currently \".*\"\\)\.\r\n$gdb_prompt $" {
54         untested "powerpc:common64 is not supported"
55     }