* gdb.mi/mi-stack.exp (test_stack_args_listing): Test that
authorVladimir Prus <vladimir@codesourcery.com>
Sun, 17 Sep 2006 15:49:32 +0000 (15:49 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Sun, 17 Sep 2006 15:49:32 +0000 (15:49 +0000)
HIGH_FRAME argument to -stack-list-arguments can be larger than
        the number of frames.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-stack.exp

index 8b201de2c472b83259e961e031c41b6c5149cdbb..32bccd826ad53d2fd55434b6b18b182c2d2ee4aa 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-17  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * 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.
+
 2006-09-15  Daniel Jacobowitz  <dan@codesourcery.com>
 
        * gdb.base/args.c (main): Add breakpoint marker.
index 0f355952e00cfcfe7a6f5df130234eb6f8ce8738..b3f92b6ace23e97a5051bf641cceb1395ec1c36f 100644 (file)
@@ -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 {} {