aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-09-08 22:46:08 +0000
committerStu Grossman <grossman@cygnus>1992-09-08 22:46:08 +0000
commita0f9783ea791ea36875071c35e6d2c4d5f38d34c (patch)
treec126a5c9f812dd8f0c6de150f7541626106269b5 /gdb/serial.h
parent1e4f3c200a15af6fe34dea69fa7c32389e1937ca (diff)
downloadgdb-a0f9783ea791ea36875071c35e6d2c4d5f38d34c.zip
gdb-a0f9783ea791ea36875071c35e6d2c4d5f38d34c.tar.gz
gdb-a0f9783ea791ea36875071c35e6d2c4d5f38d34c.tar.bz2
* a68v-xdep.c (store_inferior_registers): declare as void.
* infptrace.c: HP/Apollos have ptrace.h in the wrong place. * remote-st2000.c: Massive changes to use new serial package. Also added 'connect' command to transparantly connect to serial port. * ser-termios.c: Big cleanup, use nicer coding conventions. * ser-bsd.c: New module, serial stuff for BSD systems. * serial.h: Define struct ttystate properly using HAVE_TERMIO. * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
Diffstat (limited to 'gdb/serial.h')
-rw-r--r--gdb/serial.h33
1 files changed, 27 insertions, 6 deletions
diff --git a/gdb/serial.h b/gdb/serial.h
index f560418..2944bb6 100644
--- a/gdb/serial.h
+++ b/gdb/serial.h
@@ -42,16 +42,37 @@ int serial_timedreadchar PARAMS ((int to, int *ok));
/* Set the baudrate to the decimal value supplied, and return 1, or fail and
return 0. */
-int serial_setbaudrate PARAMS ((int to));
+int serial_setbaudrate PARAMS ((int rate));
/* Return the next rate in the sequence, or return 0 for failure. */
-int serial_nextbaudrate PARAMS ((int rate));
+/* Write some chars to the device, returns 0 for failure. See errno for
+ details. */
-/* Write some chars to the device, return 1 if ok, 0 if not. */
+int serial_write PARAMS ((const char *str , int len));
-int serial_write PARAMS ((const char *str, int len));
+/* Close the serial port */
-/* Close the serial port. */
+void serial_close PARAMS ((void));
-int serial_close PARAMS ((void));
+#ifdef HAVE_TERMIO
+
+#include <termios.h>
+#include <unistd.h>
+
+struct ttystate
+{
+ int flags; /* Flags from fcntl F_GETFL */
+ struct termios termios; /* old tty driver settings */
+};
+
+#else /* not HAVE_TERMIO */
+
+#include <sgtty.h>
+
+struct ttystate {
+ int flags; /* Flags from fcntl F_GETFL */
+ struct sgttyb sgttyb; /* old tty driver settings */
+};
+
+#endif /* not HAVE_TERMIO */