aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorThomas Preud'homme <thomas.preudhomme@arm.com>2015-12-22 10:50:21 +0800
committerThomas Preud'homme <thomas.preudhomme@arm.com>2015-12-22 10:54:49 +0800
commit6d265cb4a956310d2cae231ac63a37e11fe376e1 (patch)
treeb3b1d311091ad025a380fb719907f55834e11cf2 /gdb/testsuite/lib
parenta20a33ffa88d6ca8c42e5c6179024da3d0c569bd (diff)
downloadgdb-6d265cb4a956310d2cae231ac63a37e11fe376e1.zip
gdb-6d265cb4a956310d2cae231ac63a37e11fe376e1.tar.gz
gdb-6d265cb4a956310d2cae231ac63a37e11fe376e1.tar.bz2
Add an expect for running commands with CLI jump
2015-12-22 Thomas Preud'homme <thomas.preudhomme@arm.com> gdb/testsuite/ * lib/mi-support.exp (mi_run_cmd_full): Add an expect for the CLI jump case.
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/mi-support.exp3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp
index 9619fb3..2b7ad00 100644
--- a/gdb/testsuite/lib/mi-support.exp
+++ b/gdb/testsuite/lib/mi-support.exp
@@ -886,6 +886,9 @@ proc mi_run_cmd_full {use_mi_command args} {
# to better handle RUN.
send_gdb "jump *$start\n"
warning "Using CLI jump command, expect run-to-main FAIL"
+ gdb_expect {
+ -re "${run_match}&\"jump \\*${start}\\n\"\[\r\n\]+~\"Continuing at 0x\[0-9A-Fa-f\]+\\n.\"\[\r\n\]+\^running\[\r\n\]+\\*running,thread-id=\"\[^\"\]+\"\r\n${mi_gdb_prompt}" {}
+ }
return 0
}