diff options
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r-- | gdb/gdbserver/remote-utils.c | 33 |
1 files changed, 4 insertions, 29 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c index 66e0652..54f27f4 100644 --- a/gdb/gdbserver/remote-utils.c +++ b/gdb/gdbserver/remote-utils.c @@ -17,7 +17,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "server.h" -#include "gdb_termios.h" +#if HAVE_TERMIOS_H +#include <termios.h> +#endif #include "target.h" #include "gdbthread.h" #include "tdesc.h" @@ -325,7 +327,7 @@ remote_open (const char *name) if (remote_desc < 0) perror_with_name ("Could not open remote device"); -#ifdef HAVE_TERMIOS +#if HAVE_TERMIOS_H { struct termios termios; tcgetattr (remote_desc, &termios); @@ -342,33 +344,6 @@ remote_open (const char *name) } #endif -#ifdef HAVE_TERMIO - { - struct termio termio; - ioctl (remote_desc, TCGETA, &termio); - - termio.c_iflag = 0; - termio.c_oflag = 0; - termio.c_lflag = 0; - termio.c_cflag &= ~(CSIZE | PARENB); - termio.c_cflag |= CLOCAL | CS8; - termio.c_cc[VMIN] = 1; - termio.c_cc[VTIME] = 0; - - ioctl (remote_desc, TCSETA, &termio); - } -#endif - -#ifdef HAVE_SGTTY - { - struct sgttyb sg; - - ioctl (remote_desc, TIOCGETP, &sg); - sg.sg_flags = RAW; - ioctl (remote_desc, TIOCSETP, &sg); - } -#endif - fprintf (stderr, "Remote debugging using %s\n", name); enable_async_notification (remote_desc); |