aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1993-09-14 19:34:15 +0000
committerK. Richard Pixley <rich@cygnus>1993-09-14 19:34:15 +0000
commita94abe5bb7a71b207691f8b50406166eefda8186 (patch)
treeceb7f9fc4dbb91e195b1fd73257cfe52ffe4a1b7 /gdb/remote.c
parentfc77365385a7f284e7ce45dac924bbd07d7bc2fb (diff)
downloadgdb-a94abe5bb7a71b207691f8b50406166eefda8186.zip
gdb-a94abe5bb7a71b207691f8b50406166eefda8186.tar.gz
gdb-a94abe5bb7a71b207691f8b50406166eefda8186.tar.bz2
use remote-utils facilities for baud_rate
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index 7775b62..efdc7d9 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -133,6 +133,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "gdb-stabs.h"
#include "dcache.h"
+#include "remote-utils.h"
#if !defined(DONT_USE_REMOTE)
#ifdef USG
@@ -297,20 +298,11 @@ device is attached to the remote system (e.g. /dev/ttya).");
if (!remote_desc)
perror_with_name (name);
-#if 0
- /* FIXME: This should be using remote-utils.c. */
- if (baud_rate)
+ if (SERIAL_SETBAUDRATE (remote_desc, sr_get_baud_rate()))
{
- int rate;
-
- if (sscanf (baud_rate, "%d", &rate) == 1)
- if (SERIAL_SETBAUDRATE (remote_desc, rate))
- {
- SERIAL_CLOSE (remote_desc);
- perror_with_name (name);
- }
+ SERIAL_CLOSE (remote_desc);
+ perror_with_name (name);
}
-#endif
SERIAL_RAW (remote_desc);