aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Roberts <nickrob@snap.net.nz>2004-01-20 00:52:06 +0000
committerNick Roberts <nickrob@snap.net.nz>2004-01-20 00:52:06 +0000
commita0c76b6b7789f3d258ce7be57abad327227dc3d7 (patch)
tree9bef1ae1216d318ff4648c9adba4392e0b9c6df6
parent8e94b9285c26353ef26d1e98bd24a06c948efc80 (diff)
downloadgdb-a0c76b6b7789f3d258ce7be57abad327227dc3d7.zip
gdb-a0c76b6b7789f3d258ce7be57abad327227dc3d7.tar.gz
gdb-a0c76b6b7789f3d258ce7be57abad327227dc3d7.tar.bz2
(test_stack_locals_listing): Test for case "-stack-list-locals 2".
-rw-r--r--gdb/testsuite/gdb.mi/mi-stack.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-stack.exp b/gdb/testsuite/gdb.mi/mi-stack.exp
index 92c651d..b805234a 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"