mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 01:07:52 +00:00
* 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:
@@ -371,10 +371,13 @@ es1800_open (name, from_tty)
|
||||
perror_with_name ("fcntl serial");
|
||||
}
|
||||
|
||||
if (SERIAL_SETBAUDRATE (es1800_desc, baud_rate))
|
||||
if (baud_rate != -1)
|
||||
{
|
||||
SERIAL_CLOSE (es1800_desc);
|
||||
perror_with_name (name);
|
||||
if (SERIAL_SETBAUDRATE (es1800_desc, baud_rate))
|
||||
{
|
||||
SERIAL_CLOSE (es1800_desc);
|
||||
perror_with_name (name);
|
||||
}
|
||||
}
|
||||
|
||||
SERIAL_RAW (es1800_desc);
|
||||
|
||||
Reference in New Issue
Block a user