diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-02-26 01:52:39 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-02-26 01:52:39 +0000 |
commit | c20c1bdf992a90db69c4abb73594b2ff58154ef6 (patch) | |
tree | a1ded8605b00af7e48cdb976ad19b608094a48c8 /gdb/remote-mon.c | |
parent | d643978558037f6c74cb1180732283994fe83504 (diff) | |
download | gdb-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-mon.c')
-rw-r--r-- | gdb/remote-mon.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/remote-mon.c b/gdb/remote-mon.c index 115822b..4552cca 100644 --- a/gdb/remote-mon.c +++ b/gdb/remote-mon.c @@ -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); |