aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
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/lib
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/lib')
-rw-r--r--gdb/testsuite/lib/mi-support.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index d94d0d7..d423636 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -1224,11 +1224,11 @@ proc mi_send_resuming_command {command test} {
# be determined.
# Does not check that the line is the same as requested.
# The caller can check itself if required.
-proc mi_continue_to_line {location command} {
+proc mi_continue_to_line {location test} {
mi_tbreak $location
mi_send_resuming_command "exec-continue" "run to $location (exec-continue)"
- return [mi_wait_for_stop]
+ return [mi_wait_for_stop $test]
}
# Wait until gdb prints the current line.