diff options
author | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:34:07 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1999-04-16 01:34:07 +0000 |
commit | 071ea11e85eb9d529cc5eb3d35f6247466a21b99 (patch) | |
tree | 5deda65b8d7b04d1f4cbc534c3206d328e1267ec /gdb/testsuite/gdb.base/langs.exp | |
parent | 1730ec6b1848f0f32154277f788fb29f88d8475b (diff) | |
download | binutils-gdb-071ea11e85eb9d529cc5eb3d35f6247466a21b99.tar.gz |
Initial creation of sourceware repository
Diffstat (limited to 'gdb/testsuite/gdb.base/langs.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/langs.exp | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/gdb/testsuite/gdb.base/langs.exp b/gdb/testsuite/gdb.base/langs.exp deleted file mode 100644 index c9340f4384d..00000000000 --- a/gdb/testsuite/gdb.base/langs.exp +++ /dev/null @@ -1,88 +0,0 @@ -if $tracelevel then { - strace $tracelevel -} - -set prms_id 0 -set bug_id 0 - -set testfile langs -set binfile ${objdir}/${subdir}/${testfile} - -if [is_remote host] { - remote_download host ${srcdir}/${subdir}/langs1.f - remote_download host ${srcdir}/${subdir}/langs2.cxx -} - -if { [gdb_compile "${srcdir}/${subdir}/langs0.c ${srcdir}/${subdir}/langs1.c ${srcdir}/${subdir}/langs2.c" "${binfile}" executable {debug}] != "" } { - perror "Couldn't link langs." - return -1 -} - -# Create and source the file that provides information about the compiler -# used to compile the test case. -if [get_compiler_info ${binfile}] { - return -1; -} - -gdb_exit -gdb_start -gdb_reinitialize_dir $srcdir/$subdir -gdb_load $binfile - -gdb_test "b langs0" {Function "langs0" not defined\.} \ - "break on nonexistent function in langs.exp" - -if [runto csub] then { - global noresults - - gdb_test "show language" "currently c\".*" \ - "show language at csub in langs.exp" - # On some machines, foo doesn't get demangled because the N_SOL for - # langs2.cxx is seen only after the function stab for foo. So - # the following regexps are kludged to accept foo__Fi as well as foo, - # even though only the latter is correct. I haven't tried to xfail it - # because it depends on details of the compiler. - - if {!$gcc_compiled} then { setup_xfail "hppa*-*-hpux*" } - gdb_test "bt" "#0.*csub.*#1.*(foo|foo__Fi) \\(.*#2.*cppsub_ .*#3.*fsub.*#4.*langs0__2do \\(.*#5 \[0-9a-fx\]* in main.*" "backtrace in langs.exp" - - if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" } - gdb_test "up" ".* in (foo|foo__Fi) .* at langs2\\.cxx.*return csub \\(.*" \ - "up to foo in langs.exp" - gdb_test "show language" "currently c\\+\\+.*" \ - "show language at foo in langs.exp" - - if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" } - gdb_test "up" ".* in cppsub_ .* at langs2\\.cxx.*return foo \\(.*" \ - "up to cppsub_ in langs.exp" - gdb_test "show language" "currently c\\+\\+.*" \ - "show language at cppsub_ in langs.exp" - - if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" } - gdb_test "up" ".* in fsub.* at langs1\\.f.*return \\(cppsub .*" \ - "up to fsub in langs.exp" - gdb_test "show language" "currently fortran.*" \ - "show language at fsub in langs.exp" - - if {!$gcc_compiled} then { setup_xfail "hppa*-*-hpux*" } - gdb_test "up" ".* in langs0__2do .* at .*langs0\\.c.*return fsub.*" \ - "up to langs0__2do in langs.exp" - gdb_test "show language" "currently c\".*" \ - "show language at langs0__2do in langs.exp" - - gdb_test "up" ".* in main .* at .*langs0\\.c.*if \\(langs0__2do \\(.*" \ - "up to main in langs.exp" - gdb_test "show language" "currently c\".*" \ - "show language at main in langs.exp" - - if $noresults==1 then { return } - - if [target_info exists use_gdb_stub] { - gdb_test "cont" "Breakpoint .*exit.*" "continue to exit in langs.exp" - } else { - gdb_test "cont" "Program exited normally\\." \ - "continue to exit in langs.exp" - } -} - -return 0 |