* remote.c, remote-mon.c, remote-utils.c, remote-utils.h,

target.h, remote-es.c, remote-nindy.c: Don't set baud rate if
	baud_rate is -1.  Remove sr_get_baud_rate and sr_set_baud_rate;
	just use the global variable itself.  When printing baud rate,
	don't print a baud rate if baud_rate is -1.
This commit is contained in:
Jim Kingdon
1994-02-26 01:52:39 +00:00
parent d643978558
commit c20c1bdf99
7 changed files with 72 additions and 26 deletions

View File

@ -341,11 +341,13 @@ general_open(args, name, from_tty)
if (monitor_desc == NULL)
perror_with_name(dev_name);
/* The baud rate was specified when GDB was started. */
if (SERIAL_SETBAUDRATE (monitor_desc, sr_get_baud_rate()))
if (baud_rate != -1)
{
SERIAL_CLOSE (monitor_desc);
perror_with_name (name);
if (SERIAL_SETBAUDRATE (monitor_desc, baud_rate))
{
SERIAL_CLOSE (monitor_desc);
perror_with_name (name);
}
}
SERIAL_RAW(monitor_desc);