From dedcc91de6ec2cbcec9c14341dd4b27e39856ca0 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Fri, 29 Sep 1995 00:14:01 +0000 Subject: Thu Sep 28 14:32:11 1995 steve chamberlain * callback.[ch]: New files. * remote-rdp.c: Support for the ARM RDP monitor. * Makefile: Update. * arm-tdep.c (arm_othernames): New. (_initialize_arm_tdep): install 'othernames' command. (arm_nullified_insn, shifted_reg_val, arm_get_next_pc): New. * configure.in: Check for termios.h, termio.h and sgtty.h. (i[345]86-*-win32*): New host. * configure: Regenerated. * inflow.c: Clean up inclusions. * main.c (main): Check for WINGDB, not WIN32. * printcmd.c (do_examine): Put QUIT test in loop. * remote-hms.c (e7000_load): Delete. (hms_ops): Point to generic_load instead. * remote-hms.c (hms_ops): Point to generic_load. * remote-sim.c (sim_callback_write_stdout): Becomes gdbsim_write_stdout. (gdbsim_load): Call generic_load. * remote-utils.c (gr_load_image): Delete. * ser-unix.c (terminal.h): Include instead of havig own #if tree. (hardwire_flush_input): Reset input buffer too. * source.c (openp): If WIN32 then open file in binary mode. * terminal.h: Configure IO mechanism using autoconf defines if available and not overriden. * utils.c (quit, pollquit, notice_quit): WIN32 check becomes WINGDB check. * config/arm/arm.mt (TDEPFILES): Add remote-rdp.o * config/arm/tm-arm.h (TARGET_BYTE_ORDER): becomes TARGET_BYTE_ORDER_SELECTABLE. (ADDR_BITS_REMOVE): New. (ORIGINAL_REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): New. (INST_xx): New (FRAME_FIND_SAVED_REGS): Pass the right argument. (arm_get_next_pc): Declare. * mswin/prebuilt/*/bfdtarget.h (SELECT_ARCHITECTURES): Need leading &. --- gdb/ser-unix.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'gdb/ser-unix.c') diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 093143c..a4a00e5 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -21,14 +21,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include "serial.h" #include #include - -#if !defined (HAVE_TERMIOS) && !defined (HAVE_TERMIO) && !defined (HAVE_SGTTY) -#define HAVE_SGTTY +#include "terminal.h" +#ifdef HAVE_UNISTD_H +#include #endif #ifdef HAVE_TERMIOS -#include -#include struct hardwire_ttystate { @@ -37,7 +35,6 @@ struct hardwire_ttystate #endif /* termios */ #ifdef HAVE_TERMIO -#include /* It is believed that all systems which have added job control to SVR3 (e.g. sco) have also added termios. Even if not, trying to figure out @@ -55,8 +52,6 @@ struct hardwire_ttystate too if it existed on all systems. */ #include -#include - struct hardwire_ttystate { struct sgttyb sgttyb; @@ -296,6 +291,9 @@ static int hardwire_flush_input (scb) serial_t scb; { + scb->bufcnt = 0; + scb->bufp = scb->buf; + #ifdef HAVE_TERMIOS return tcflush (scb->fd, TCIFLUSH); #endif -- cgit v1.1