diff options
author | Fernando Nasser <fnasser@redhat.com> | 2001-05-12 21:05:59 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2001-05-12 21:05:59 +0000 |
commit | 67dd5ca6911d587bbb65f527c81423d6e535ac5f (patch) | |
tree | bd7a5a1e24fced25356403d13c4acf1cb190b05f /gdb/remote-e7000.c | |
parent | 8d5ec59972b838fdd5ebe6039b57cb20254a863f (diff) | |
download | gdb-67dd5ca6911d587bbb65f527c81423d6e535ac5f.zip gdb-67dd5ca6911d587bbb65f527c81423d6e535ac5f.tar.gz gdb-67dd5ca6911d587bbb65f527c81423d6e535ac5f.tar.bz2 |
2001-05-12 Fernando Nasser <fnasser@redhat.com>
* remote-e7000.c (e7000_open): Check for bad baud rate.
* remote-st.c (st2000_open): Ditto.
Diffstat (limited to 'gdb/remote-e7000.c')
-rw-r--r-- | gdb/remote-e7000.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/remote-e7000.c b/gdb/remote-e7000.c index 4e7c97c..34ac345 100644 --- a/gdb/remote-e7000.c +++ b/gdb/remote-e7000.c @@ -667,7 +667,11 @@ e7000_open (char *args, int from_tty) 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 |