This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH, RFA]: Skip mi test when UI_OUT but mi support isn't present


Mark Kettenis wrote:
> 
> Ever since the switch to UI_OUT, the mi tests are no longer skipped if
> mi support wasn't compiled in.  The attached patch fixes this.  I left
> the pre-UI_OUT stuff in since it is still possible to compile GDB
> wuithout UI_OUT.
> 

Thank you for catching this Mark.

Please check it in.

Fernando



> Mark
> 
> 2001-01-20  Mark Kettenis  <kettenis@gnu.org>
> 
>         * mi-support.exp (mi_gdb_start): Skip mi tests if -i flag is
>         recognized (i.e. if GDB was compiled with UI_OUT, but the mi
>         interpreter wasn't recognized (because it wasn't compiled in).
> 
> Index: testsuite/lib/mi-support.exp
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/lib/mi-support.exp,v
> retrieving revision 1.3
> diff -u -p -r1.3 mi-support.exp
> --- mi-support.exp      2000/12/20 21:24:28     1.3
> +++ mi-support.exp      2001/01/20 22:24:58
> @@ -135,6 +135,11 @@ proc mi_gdb_start { } {
>             remote_close host;
>             return -1;
>         }
> +       -re ".*Interpreter `mi' unrecognized." {
> +           untested "Skip mi tests (not compiled with mi support)."
> +           remote_close host;
> +           return -1;
> +       }
>         timeout {
>             perror "(timeout) GDB never initialized after 10 seconds."
>             remote_close host;

-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]