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>
Tue, 22 Dec 2015 02:54:49 +0000 (10:54 +0800)
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
gdb/testsuite/lib/mi-support.exp

index 5ea5cf569cb3a947db3cf23b3ecc0f65e21e2150..888c60c21e9e750c686aa01d17260cb9fe9ae2b7 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2015-12-21  Simon Marchi  <simon.marchi@ericsson.com>
 
        * gdb.base/break.exp: Remove dead code.
index 9619fb30893785f5d8c6abde2f730f4d4f214743..2b7ad00cf0a8c58bcd8839536002e4da9088c88b 100644 (file)
@@ -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
     }