diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-07-15 20:34:14 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-07-15 20:34:14 +0000 |
commit | af6ad00337553c281e0d6df90d3258b5b3e92016 (patch) | |
tree | aefd8c53fcf13f7ffb64d8962a9c5e7438b90b92 /gdb/remote-utils.c | |
parent | 3828ba6a00c73b6ef14c11263bc810eebebb1243 (diff) | |
download | gdb-af6ad00337553c281e0d6df90d3258b5b3e92016.tar.gz |
* 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-utils.c')
-rw-r--r-- | gdb/remote-utils.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c index 92827f2bb0a..e703f3dee35 100644 --- a/gdb/remote-utils.c +++ b/gdb/remote-utils.c @@ -172,24 +172,24 @@ gr_open (char *args, int from_tty, struct gr_settings *gr) if (sr_get_device () == NULL) usage (gr->ops->to_shortname, NULL); - sr_set_desc (SERIAL_OPEN (sr_get_device ())); + sr_set_desc (serial_open (sr_get_device ())); if (!sr_get_desc ()) perror_with_name ((char *) sr_get_device ()); if (baud_rate != -1) { - if (SERIAL_SETBAUDRATE (sr_get_desc (), baud_rate) != 0) + if (serial_setbaudrate (sr_get_desc (), baud_rate) != 0) { - SERIAL_CLOSE (sr_get_desc ()); + serial_close (sr_get_desc ()); perror_with_name (sr_get_device ()); } } - SERIAL_RAW (sr_get_desc ()); + serial_raw (sr_get_desc ()); /* If there is something sitting in the buffer we might take it as a response to a command, which would be bad. */ - SERIAL_FLUSH_INPUT (sr_get_desc ()); + serial_flush_input (sr_get_desc ()); /* default retries */ if (sr_get_retries () == 0) @@ -222,7 +222,7 @@ sr_readchar (void) { int buf; - buf = SERIAL_READCHAR (sr_get_desc (), sr_get_timeout ()); + buf = serial_readchar (sr_get_desc (), sr_get_timeout ()); if (buf == SERIAL_TIMEOUT) error ("Timeout reading from remote system."); @@ -238,7 +238,7 @@ sr_pollchar (void) { int buf; - buf = SERIAL_READCHAR (sr_get_desc (), 0); + buf = serial_readchar (sr_get_desc (), 0); if (buf == SERIAL_TIMEOUT) buf = 0; if (sr_get_debug () > 0) @@ -281,7 +281,7 @@ sr_write (char *a, int l) { int i; - if (SERIAL_WRITE (sr_get_desc (), a, l) != 0) + if (serial_write (sr_get_desc (), a, l) != 0) perror_with_name ("sr_write: Error writing to remote"); if (sr_get_debug () > 0) @@ -398,7 +398,7 @@ gr_close (int quitting) if (sr_is_open ()) { - SERIAL_CLOSE (sr_get_desc ()); + serial_close (sr_get_desc ()); sr_set_desc (NULL); } |