]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add an expect for running commands with CLI jump
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Tue, 22 Dec 2015 02:50:21 +0000 (10:50 +0800)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 6 Apr 2016 13:32:37 +0000 (14:32 +0100)
2016-04-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    Backport from master
    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.

gdb/testsuite/ChangeLog.arm [new file with mode: 0644]
gdb/testsuite/lib/mi-support.exp

diff --git a/gdb/testsuite/ChangeLog.arm b/gdb/testsuite/ChangeLog.arm
new file mode 100644 (file)
index 0000000..c6716da
--- /dev/null
@@ -0,0 +1,7 @@
+2016-04-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       Backport from master
+       2015-12-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * lib/mi-support.exp (mi_run_cmd_full): Add an expect for the CLI jump
+       case.
index 6827ef9cb64635fa1cdc72dc48f445cd2173655b..a7569b84c32c4332ab351b152d3ed0e8aad43268 100644 (file)
@@ -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
     }