diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-01-04 21:55:04 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-01-04 21:55:04 +0000 |
commit | 74a44383f0a7ceb4976b51dbf0a8709df34b8e24 (patch) | |
tree | 84063fb23e9cf9bbcd893dee5ba9450a40233855 /gdb/testsuite/lib | |
parent | 1b572db9ac86f8af568f13e3fa84cc3eecdb609c (diff) | |
download | gdb-74a44383f0a7ceb4976b51dbf0a8709df34b8e24.zip gdb-74a44383f0a7ceb4976b51dbf0a8709df34b8e24.tar.gz gdb-74a44383f0a7ceb4976b51dbf0a8709df34b8e24.tar.bz2 |
* varobj.c (varobj_list_children): Stop if the number of children is
unknown.
(c_number_of_children): Report no children for zero sized arrays.
* lib/mi-support.exp (mi_runto_helper): Expect two prompts
when continuing.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r-- | gdb/testsuite/lib/mi-support.exp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index ad968ce..fa9d790 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -880,8 +880,17 @@ proc mi_runto_helper {func run_or_continue} { if {$run_or_continue == "run"} { mi_run_cmd } else { - send_gdb "000-exec-continue\n" + send_gdb "000-exec-continue\n" + gdb_expect { + -re "000\\^running\r\n${mi_gdb_prompt}" { + } + timeout { + fail "$test" + return -1 + } + } } + gdb_expect { -re ".*000\\*stopped,thread-id=\"$decimal\",frame=\{addr=\"$hex\",func=\"$func\",args=\(\\\[.*\\\]\|\{.*\}\),file=\".*\",fullname=\"${fullname_syntax}.*\",line=\"\[0-9\]*\"\}\r\n$mi_gdb_prompt$" { pass "$test" |