mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 16:53:50 +08: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:
@ -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);
|
||||
|
Reference in New Issue
Block a user