aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-09-07 16:40:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-09-07 16:40:19 +0000
commit2ab1eb7abcf19861c0d778227bd44d5085d1e176 (patch)
tree245560e05fc437b51017571f5717ebc7fd590fb9 /gdb/testsuite
parent7a0b019608c711103302293b080ceee97f67af6c (diff)
downloadgdb-2ab1eb7abcf19861c0d778227bd44d5085d1e176.zip
gdb-2ab1eb7abcf19861c0d778227bd44d5085d1e176.tar.gz
gdb-2ab1eb7abcf19861c0d778227bd44d5085d1e176.tar.bz2
Allow the HIGH-FRAME parameter for -stack-list-frames to be larger
than the number of available frames.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.mi/mi-stack.exp4
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 61fcffb..7a12277 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-07 Vladimir Prus <ghost@vladimir@codesourcery.com>
+
+ * gdb.mi/mi-stack.exp (test_stack_frame_listing): Test that
+ HIGH_FRAME argument to -stack-list-locals can be larger than
+ the number of frames.
+
2006-08-18 Fred Fish <fnf@specifix.com>
* lib/gdb.exp (skip_altivec_tests): Fix apparent typo,
diff --git a/gdb/testsuite/gdb.mi/mi-stack.exp b/gdb/testsuite/gdb.mi/mi-stack.exp
index 47e51cd..0f35595 100644
--- a/gdb/testsuite/gdb.mi/mi-stack.exp
+++ b/gdb/testsuite/gdb.mi/mi-stack.exp
@@ -75,6 +75,10 @@ proc test_stack_frame_listing {} {
mi_gdb_test "235-stack-info-frame" \
"235\\^done,frame=\{level=\"0\",addr=\"$hex\",func=\"callee4\",file=\".*${srcfile}\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_callee4_body\"\}" \
"selected frame listing"
+
+ mi_gdb_test "236-stack-list-frames 1 300" \
+ "236\\^done,stack=\\\[frame=\{level=\"1\",addr=\"$hex\",func=\"callee3\",.*\},frame=\{level=\"2\",addr=\"$hex\",func=\"callee2\",.*\},frame=\{level=\"3\",addr=\"$hex\",func=\"callee1\",.*\}\\\]" \
+ "stack frame listing 1 300"
}
proc test_stack_args_listing {} {