aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-stack.exp
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2006-09-17 15:49:32 +0000
committerVladimir Prus <vladimir@codesourcery.com>2006-09-17 15:49:32 +0000
commitcd5ff84afdf0c24c2b3f732d994ea4f43cd1bf31 (patch)
tree5aeb9a38917686631b45e029ba0e2beb23343533 /gdb/testsuite/gdb.mi/mi-stack.exp
parentf28f46e7d6bcf30721936c21e1e523ee10a6d766 (diff)
downloadgdb-cd5ff84afdf0c24c2b3f732d994ea4f43cd1bf31.zip
gdb-cd5ff84afdf0c24c2b3f732d994ea4f43cd1bf31.tar.gz
gdb-cd5ff84afdf0c24c2b3f732d994ea4f43cd1bf31.tar.bz2
* gdb.mi/mi-stack.exp (test_stack_args_listing): Test that
HIGH_FRAME argument to -stack-list-arguments can be larger than the number of frames.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-stack.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-stack.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-stack.exp b/gdb/testsuite/gdb.mi/mi-stack.exp
index 0f35595..b3f92b6 100644
--- a/gdb/testsuite/gdb.mi/mi-stack.exp
+++ b/gdb/testsuite/gdb.mi/mi-stack.exp
@@ -122,6 +122,10 @@ proc test_stack_args_listing {} {
mi_gdb_test "234-stack-list-arguments" \
"&.*234\\^error,msg=\"mi_cmd_stack_list_args: Usage.*PRINT_VALUES.*FRAME_LOW FRAME_HIGH.*\"" \
"stack args listing wrong"
+
+ mi_gdb_test "235-stack-list-arguments 1 1 300" \
+ "235\\^done,stack-args=\\\[frame=\{level=\"1\",args=\\\[\{name=\"strarg\",value=\"$hex \\\\\"A string argument.\\\\\"\"\}\\\]\},frame=\{level=\"2\",args=\\\[\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument.\\\\\"\"\}\\\]\},frame=\{level=\"3\",args=\\\[\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\"\}\\\]\},frame=\{level=\"4\",args=\\\[\\\]\}\\\]" \
+ "stack args listing 1 1 300"
}
proc test_stack_info_depth {} {