aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-10-09 14:52:02 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-10-09 14:52:02 +0000
commit62433a301a117d437e9a92e5f1fba2a09445053c (patch)
tree05259da5c470a6939412388cfaa09a6c9c4b5f08 /gdb/testsuite/gdb.base
parent87888df69fb551d4f50a303bfb86f4e5023ddb7b (diff)
downloadgdb-62433a301a117d437e9a92e5f1fba2a09445053c.zip
gdb-62433a301a117d437e9a92e5f1fba2a09445053c.tar.gz
gdb-62433a301a117d437e9a92e5f1fba2a09445053c.tar.bz2
* gdb.base/corefile.exp: Add (xfail'd) test for reinit_frame_cache
bug involving using inferior_pid to figure out whether to select a frame.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r--gdb/testsuite/gdb.base/corefile.exp15
1 files changed, 13 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.base/corefile.exp b/gdb/testsuite/gdb.base/corefile.exp
index 2dc2d5a..5406b4d 100644
--- a/gdb/testsuite/gdb.base/corefile.exp
+++ b/gdb/testsuite/gdb.base/corefile.exp
@@ -52,9 +52,9 @@ if ![file exists $objdir/$subdir/corefile] then {
catch "system \"cd $objdir/$subdir; ./$binfile\""
if [file exists $objdir/$subdir/core] then {
catch "exec mv $objdir/$subdir/core $objdir/$subdir/corefile"
- } else if [file exists $objdir/$subdir/core.$binfile] {
+ } elseif [file exists $objdir/$subdir/core.$binfile] {
catch "exec mv $objdir/$subdir/core.$binfile $objdir/$subdir/corefile"
- } else if [file exists $objdir/$subdir/$binfile.core] {
+ } elseif [file exists $objdir/$subdir/$binfile.core] {
catch "exec mv $objdir/$subdir/$binfile.core $objdir/$subdir/corefile"
}
}
@@ -136,4 +136,15 @@ $prompt $" { pass "core-file command" }
timeout { fail "(timeout) core-file command" }
}
+# test reinit_frame_cache
+
+gdb_load $objdir/$subdir/$binfile
+setup_xfail "*-*-*"
+gdb_test "up" "#\[0-9\]* *\[0-9xa-fH'\]* in .* \\(\\)"
+
+# another good test of roughly the same thing would be to select a frame,
+# print a local variable in that frame, then do the "file" and
+# (without selecting the frame again explicitly) print the variable
+# again.
+
gdb_test "core" "No core file now."