aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-es.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-es.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-es.c')
-rw-r--r--gdb/remote-es.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/remote-es.c b/gdb/remote-es.c
index f61c1eb..e910816 100644
--- a/gdb/remote-es.c
+++ b/gdb/remote-es.c
@@ -106,6 +106,7 @@ STP
#include "wait.h"
#include "terminal.h"
#include "command.h"
+#include "remote-utils.h"
#ifdef USG
#include <sys/types.h>
@@ -364,7 +365,7 @@ es1800_open (name, from_tty)
char buf[PBUFSIZ];
char *p;
int i, fcflag;
- char *baudrate;
+ char baudrate[1024];
m68020 = 0;
@@ -372,7 +373,7 @@ es1800_open (name, from_tty)
{
error_no_arg ("serial port device name");
}
- baudrate = baud_rate ? baud_rate : "19200"; /* default baudrate = 19200 */
+ sprintf(baudrate, "%d", sr_get_baud_rate());
target_preopen (from_tty);
es1800_close (0);