From a94abe5bb7a71b207691f8b50406166eefda8186 Mon Sep 17 00:00:00 2001 From: "K. Richard Pixley" Date: Tue, 14 Sep 1993 19:34:15 +0000 Subject: use remote-utils facilities for baud_rate --- gdb/remote-es.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/remote-es.c') diff --git a/gdb/remote-es.c b/gdb/remote-es.c index f61c1eb3db0..e9108169b54 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 @@ -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); -- cgit v1.2.1