aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-es.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-02-26 01:52:39 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-02-26 01:52:39 +0000
commitc20c1bdf992a90db69c4abb73594b2ff58154ef6 (patch)
treea1ded8605b00af7e48cdb976ad19b608094a48c8 /gdb/remote-es.c
parentd643978558037f6c74cb1180732283994fe83504 (diff)
downloadgdb-c20c1bdf992a90db69c4abb73594b2ff58154ef6.zip
gdb-c20c1bdf992a90db69c4abb73594b2ff58154ef6.tar.gz
gdb-c20c1bdf992a90db69c4abb73594b2ff58154ef6.tar.bz2
* 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.
Diffstat (limited to 'gdb/remote-es.c')
-rw-r--r--gdb/remote-es.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/remote-es.c b/gdb/remote-es.c
index d8f3da1..0da26ac 100644
--- a/gdb/remote-es.c
+++ b/gdb/remote-es.c
@@ -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);