(test_stack_locals_listing): Test for case "-stack-list-locals 2".
authorNick Roberts <nickrob@snap.net.nz>
Tue, 20 Jan 2004 00:52:06 +0000 (00:52 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Tue, 20 Jan 2004 00:52:06 +0000 (00:52 +0000)
gdb/testsuite/gdb.mi/mi-stack.exp

index 92c651df89bf048ce57acdd3c84cedc67b780f3f..b805234af12bf10e339b0e737ddb24d64b27500b 100644 (file)
@@ -149,6 +149,7 @@ proc test_stack_locals_listing {} {
     # Tests:
     # -stack-list-locals 0
     # -stack-list-locals 1
+    # -stack-list-locals 2
     # -stack-list-arguments 
 
     mi_gdb_test "232-stack-list-locals 0" \
@@ -168,6 +169,10 @@ gdb_expect {
            "232\\^done,locals=\\\[\{name=\"A\",value=\"1\"\},\{name=\"B\",value=\"2\"\},\{name=\"C\",value=\"3\"\}\\\]" \
                 "stack locals listing 1"
 
+    mi_gdb_test "232-stack-list-locals 2" \
+           "232\\^done,locals=\\\[\{name=\"A\",type=\"int\",value=\"1\"\},\{name=\"B\",type=\"int\",value=\"2\"\},\{name=\"C\",type=\"int\",value=\"3\"\}\\\]" \
+                "stack locals listing 2"
+
     mi_gdb_test "234-stack-list-locals" \
            "234\\^error,msg=\"mi_cmd_stack_list_locals: Usage.*PRINT_VALUES.*\"" \
            "stack locals listing wrong"