From: Thomas Preud'homme Date: Tue, 22 Dec 2015 02:50:21 +0000 (+0800) Subject: Add an expect for running commands with CLI jump X-Git-Tag: users/ARM/embedded-gdb-7.10-branch-2016q2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=39e1183fea89ab60684c19cca2b07911951b45e5;p=thirdparty%2Fbinutils-gdb.git Add an expect for running commands with CLI jump 2016-04-05 Thomas Preud'homme Backport from master 2015-12-22 Thomas Preud'homme gdb/testsuite/ * lib/mi-support.exp (mi_run_cmd_full): Add an expect for the CLI jump case. --- diff --git a/gdb/testsuite/ChangeLog.arm b/gdb/testsuite/ChangeLog.arm new file mode 100644 index 00000000000..c6716da38cc --- /dev/null +++ b/gdb/testsuite/ChangeLog.arm @@ -0,0 +1,7 @@ +2016-04-05 Thomas Preud'homme + + Backport from master + 2015-12-22 Thomas Preud'homme + + * lib/mi-support.exp (mi_run_cmd_full): Add an expect for the CLI jump + case. diff --git a/gdb/testsuite/lib/mi-support.exp b/gdb/testsuite/lib/mi-support.exp index 6827ef9cb64..a7569b84c32 100644 --- a/gdb/testsuite/lib/mi-support.exp +++ b/gdb/testsuite/lib/mi-support.exp @@ -900,6 +900,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 }