From: Nick Roberts Date: Tue, 20 Jan 2004 00:52:06 +0000 (+0000) Subject: (test_stack_locals_listing): Test for case "-stack-list-locals 2". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0c76b6b7789f3d258ce7be57abad327227dc3d7;p=binutils-gdb.git (test_stack_locals_listing): Test for case "-stack-list-locals 2". --- diff --git a/gdb/testsuite/gdb.mi/mi-stack.exp b/gdb/testsuite/gdb.mi/mi-stack.exp index 92c651df89b..b805234af12 100644 --- a/gdb/testsuite/gdb.mi/mi-stack.exp +++ b/gdb/testsuite/gdb.mi/mi-stack.exp @@ -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"