* remote-e7000.c (e7000_open): Check for bad baud rate.
* remote-st.c (st2000_open): Ditto.
+2001-05-12 Fernando Nasser <fnasser@redhat.com>
+
+ * remote-e7000.c (e7000_open): Check for bad baud rate.
+ * remote-st.c (st2000_open): Ditto.
+
2001-05-11 Jim Blandy <jimb@redhat.com>
* thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
if (!e7000_desc)
perror_with_name (dev_name);
- SERIAL_SETBAUDRATE (e7000_desc, baudrate);
+ if (SERIAL_SETBAUDRATE (e7000_desc, baudrate))
+ {
+ SERIAL_CLOSE (dev_name);
+ perror_with_name (dev_name);
+ }
SERIAL_RAW (e7000_desc);
#ifdef GDB_TARGET_IS_H8300
if (!st2000_desc)
perror_with_name (dev_name);
- SERIAL_SETBAUDRATE (st2000_desc, baudrate);
+ if (SERIAL_SETBAUDRATE (st2000_desc, baudrate))
+ {
+ SERIAL_CLOSE (dev_name);
+ perror_with_name (dev_name);
+ }
SERIAL_RAW (st2000_desc);