diff options
author | Fred Fish <fnf@specifix.com> | 1995-08-11 16:42:45 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1995-08-11 16:42:45 +0000 |
commit | 06c87bef35fbcaa68d691535fcac9f1a8af6e3f4 (patch) | |
tree | 70b8d50ee0c0fb39fe1c6156c4b3e182cc4dc70c /gdb/testsuite/gdb.base/langs.exp | |
parent | eae45ea981a9974fdf9335d72dc4cd29534b13d3 (diff) | |
download | gdb-06c87bef35fbcaa68d691535fcac9f1a8af6e3f4.zip gdb-06c87bef35fbcaa68d691535fcac9f1a8af6e3f4.tar.gz gdb-06c87bef35fbcaa68d691535fcac9f1a8af6e3f4.tar.bz2 |
* gdb.base/a1-selftest.exp: Change "i*86-*-sysv4" xfail for
"backtrace through signal handler" to "i*86-*-sysv4*".
* gdb.base/signals.exp: Add xfail for "'next' behaved as
continue" case. Add "known SVR4 bug" to fail message.
Add "i*86-*-bsdi2.0" xfail for "handle all print".
Add "i*86-*-bsdi2.0" xfail for "backtrace in signals_tests_1".
* gdb.base/ptype.exp: Add "i*86-*-sysv4*" xfail for
"whatis unnamed typedef'd enum..." and "ptype t_char_array".
* gdb.base/langs.exp: Add "i*86-*-sysv4*" xfail for
"up to foo in langs.exp", "show language at foo in
langs.exp", "up to cppsub_ in langs.exp", "show
language at cppsub_ in langs.exp", "up to fsub in
langs.exp", and "show language at fsub in langs.exp".
* gdb.base/corefile.exp: Add "i*86-*-sysv4*" to xfail for
"bactrace in corefile.exp".
* gdb.base/callfuncs.exp: Change xfail to "i*86-*-*" for
"call inferior function with struct - returns float" and
"call inferior function with struct - returns double".
Diffstat (limited to 'gdb/testsuite/gdb.base/langs.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/langs.exp | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/langs.exp b/gdb/testsuite/gdb.base/langs.exp new file mode 100644 index 0000000..94e073b --- /dev/null +++ b/gdb/testsuite/gdb.base/langs.exp @@ -0,0 +1,68 @@ +if $tracelevel then { + strace $tracelevel +} + +set prms_id 0 +set bug_id 0 + +set binfile $objdir/$subdir/langs + +if ![file exists $binfile] then { + perror "$binfile does not exist." + return 0 +} + +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 { + 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. + 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" + + setup_xfail "i*86-*-sysv4*" + gdb_test "up" ".* in (foo|foo__Fi) .* at langs2\\.cxx.*return csub \\(.*" \ + "up to foo in langs.exp" + setup_xfail "i*86-*-sysv4*" + gdb_test "show language" "currently c\\+\\+.*" \ + "show language at foo in langs.exp" + + setup_xfail "i*86-*-sysv4*" + gdb_test "up" ".* in cppsub_ .* at langs2\\.cxx.*return foo \\(.*" \ + "up to cppsub_ in langs.exp" + setup_xfail "i*86-*-sysv4*" + gdb_test "show language" "currently c\\+\\+.*" \ + "show language at cppsub_ in langs.exp" + + setup_xfail "i*86-*-sysv4*" + gdb_test "up" ".* in fsub.* at langs1\\.f.*return \\(cppsub .*" \ + "up to fsub in langs.exp" + setup_xfail "i*86-*-sysv4*" + gdb_test "show language" "currently fortran.*" \ + "show language at fsub in langs.exp" + + 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" + + gdb_test "cont" "Program exited normally\\." \ + "continue to exit in langs.exp" +} + +return 0 |