aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-st.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-07-15 20:34:14 +0000
committerAndrew Cagney <cagney@redhat.com>2001-07-15 20:34:14 +0000
commit2cd58942b9bf50ccde261085d8a2b3e7ced88e5e (patch)
tree9782ed43082f4838f54567f55f29e64ed1cd3312 /gdb/remote-st.c
parentea7c478fe2e8aac579da890b1861677fa6bea5eb (diff)
downloadgdb-2cd58942b9bf50ccde261085d8a2b3e7ced88e5e.zip
gdb-2cd58942b9bf50ccde261085d8a2b3e7ced88e5e.tar.gz
gdb-2cd58942b9bf50ccde261085d8a2b3e7ced88e5e.tar.bz2
* serial.h (SERIAL_ASYNC): Delete.
(DEPRECATED_SERIAL_FD): Delete. (SERIAL_DEBUG): Delete. (SERIAL_DEBUG_P): Delete. (SERIAL_DRAIN_OUTPUT): Delete. (SERIAL_FLUSH_OUTPUT): Delete. (SERIAL_FLUSH_INPUT): Delete. (SERIAL_SEND_BREAK): Delete. (SERIAL_RAW): Delete. (SERIAL_GET_TTY_STATE): Delete. (SERIAL_SET_TTY_STATE): Delete. (SERIAL_PRINT_TTY_STATE): Delete. (SERIAL_NOFLUSH_SET_TTY_STATE): Delete. (SERIAL_SETBAUDRATE): Delete. (SERIAL_SETSTOPBITS): Delete. (SERIAL_CAN_ASYNC_P): Delete. (SERIAL_IS_ASYNC_P): Delete. (SERIAL_UN_FDOPEN): Delete. (SERIAL_READCHAR): Delete. (SERIAL_CLOSE): Delete. (SERIAL_FDOPEN): Delete. (SERIAL_OPEN): Delete.
Diffstat (limited to 'gdb/remote-st.c')
-rw-r--r--gdb/remote-st.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/remote-st.c b/gdb/remote-st.c
index cda69b6..2a15b38 100644
--- a/gdb/remote-st.c
+++ b/gdb/remote-st.c
@@ -76,8 +76,8 @@ printf_stdebug (char *pattern,...)
vsprintf (buf, pattern, args);
va_end (args);
- if (SERIAL_WRITE (st2000_desc, buf, strlen (buf)))
- fprintf (stderr, "SERIAL_WRITE failed: %s\n", safe_strerror (errno));
+ if (serial_write (st2000_desc, buf, strlen (buf)))
+ fprintf (stderr, "serial_write failed: %s\n", safe_strerror (errno));
}
/* Read a character from the remote system, doing all the fancy timeout
@@ -88,7 +88,7 @@ readchar (int timeout)
{
int c;
- c = SERIAL_READCHAR (st2000_desc, timeout);
+ c = serial_readchar (st2000_desc, timeout);
#ifdef LOG_FILE
putc (c & 0x7f, log_file);
@@ -280,18 +280,18 @@ or target st2000 <host> <port>\n");
st2000_close (0);
- st2000_desc = SERIAL_OPEN (dev_name);
+ st2000_desc = serial_open (dev_name);
if (!st2000_desc)
perror_with_name (dev_name);
- if (SERIAL_SETBAUDRATE (st2000_desc, baudrate))
+ if (serial_setbaudrate (st2000_desc, baudrate))
{
- SERIAL_CLOSE (dev_name);
+ serial_close (dev_name);
perror_with_name (dev_name);
}
- SERIAL_RAW (st2000_desc);
+ serial_raw (st2000_desc);
push_target (&st2000_ops);
@@ -316,7 +316,7 @@ or target st2000 <host> <port>\n");
static void
st2000_close (int quitting)
{
- SERIAL_CLOSE (st2000_desc);
+ serial_close (st2000_desc);
#if defined (LOG_FILE)
if (log_file)
@@ -664,7 +664,7 @@ static void
cleanup_tty (void)
{
printf ("\r\n[Exiting connect mode]\r\n");
-/* SERIAL_RESTORE(0, &ttystate); */
+/* serial_restore(0, &ttystate); */
}
#if 0
@@ -699,7 +699,7 @@ connect_command (char *args, int fromtty)
do
{
FD_SET (0, &readfds);
- FD_SET (DEPRECATED_SERIAL_FD (st2000_desc), &readfds);
+ FD_SET (deprecated_serial_fd (st2000_desc), &readfds);
numfds = select (sizeof (readfds) * 8, &readfds, 0, 0, 0);
}
while (numfds == 0);
@@ -734,7 +734,7 @@ connect_command (char *args, int fromtty)
}
}
- if (FD_ISSET (DEPRECATED_SERIAL_FD (st2000_desc), &readfds))
+ if (FD_ISSET (deprecated_serial_fd (st2000_desc), &readfds))
{
while (1)
{