aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi2-var-cmd.exp
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-04-01 15:27:26 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-04-01 15:27:26 +0000
commita73bafbcaa287d25ca811a4bcc01e9bde25b82e9 (patch)
treedf5b8f1d477c2fc505cfce7731d5b79901ec73b5 /gdb/testsuite/gdb.mi/mi2-var-cmd.exp
parent30dc3ae37811636191eee1f5b79c1672026b38d9 (diff)
downloadgdb-a73bafbcaa287d25ca811a4bcc01e9bde25b82e9.zip
gdb-a73bafbcaa287d25ca811a4bcc01e9bde25b82e9.tar.gz
gdb-a73bafbcaa287d25ca811a4bcc01e9bde25b82e9.tar.bz2
* gdb.mi/mi-var-child.c
(do_children_tests): User char[2] instead of char so that automatic printing of pointers to char don't give unpredicable result. * gdb.mi/var-cmd.c (do_locals_test): Initialize local variables. * gdb.mi/mi-var-child.exp: Step to right line of do_children_tests. * gdb.mi/mi2-var-child.exp: Likewise. * gdb.mi/mi-var-cmd.exp: Step to right line of do_locals_tests. (do_children_tests): User char[2] instead of char so that automatic printing of pointers to char don't give unpredicable result. * gdb.mi/mi2-var-cmd.exp: Likewise. * lib/mi-support.exp (mi_continue_to_line): Pass test name to mi_wait_for_stop.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi2-var-cmd.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi2-var-cmd.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi2-var-cmd.exp b/gdb/testsuite/gdb.mi/mi2-var-cmd.exp
index 11b65ce..8905e0c 100644
--- a/gdb/testsuite/gdb.mi/mi2-var-cmd.exp
+++ b/gdb/testsuite/gdb.mi/mi2-var-cmd.exp
@@ -71,6 +71,11 @@ mi_gdb_test "113-var-create argc * argc" \
mi_runto do_locals_tests
+set line_dlt_first_real [gdb_get_line_number "linteger = 1234;"]
+
+mi_continue_to_line $line_dlt_first_real "step to real start of do_locals_test"
+
+
# Test: c_variable-1.4
# Desc: create local variables