PATCH: Make gdbserver use async I/O on Linux

Daniel Jacobowitz
2001-06-06T14:03:00Z

The only problem I can think of that this might cause is if F_SETOWN is less
portable than FASYNC. Apparently you need to do that explicitly on a Linux
target before SIGIO will be sent.

This lets C-c on the host be properly handled, stopping the target.

--
Daniel Jacobowitz Debian GNU/Linux Developer
Monta Vista Software Debian Security Team
From ezannoni@cygnus.com Wed Jun 06 14:10:00 2001
From: Elena Zannoni <ezannoni@cygnus.com>
To: Jim Blandy <jimb@cygnus.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: RFA: Properly detect that GDB was compiled without MI support
Date: Wed, 06 Jun 2001 14:10:00 -0000
Message-id: <15134.39998.848755.666987@kwikemart.cygnus.com>
References: <20010605210124.AABD95E9CB@zwingli.cygnus.com>
X-SW-Source: 2001-06/msg00097.html
Content-length: 1679

Jim, I must be seeing double, but I think this output is already
handled in the -re directly below the one you changed.
(Ok I am jet-lagged, so excuse me if I am wrong).

-re ".*unrecognized option.*for a complete list of options." {
untested "Skip mi tests (not compiled with mi support)."
remote_close host;
return -1;
}
-re ".*Interpreter `mi' unrecognized." {
untested "Skip mi tests (not compiled with mi support)."
remote_close host;
return -1;
}

Elena

Jim Blandy writes:
>
> gdb/testsuite/gdb.mi/ChangeLog-mi:
>
> 2001-06-05 Jim Blandy <jimb@redhat.com>
>
> * lib/mi-support.exp: Recognize new error message, indicating that GDB
> was compiled without MI support.
>
> Index: gdb/testsuite/lib/mi-support.exp
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gdb/testsuite/lib/mi-support.exp,v
> retrieving revision 1.24
> diff -c -r1.24 mi-support.exp
> *** gdb/testsuite/lib/mi-support.exp 2001/01/15 12:28:02 1.24
> --- gdb/testsuite/lib/mi-support.exp 2001/06/05 20:57:06
> ***************
> *** 130,136 ****
> remote_close host;
> return -1;
> }
> ! -re ".*unrecognized option.*for a complete list of options." {
> untested "Skip mi tests (not compiled with mi support)."
> remote_close host;
> return -1;
> --- 130,136 ----
> remote_close host;
> return -1;
> }
> ! -re ".*(unrecognized option.*for a complete list of options.)|(Interpreter `mi' unrecognized)" {
> untested "Skip mi tests (not compiled with mi support)."
> remote_close host;
> return -1;
>