summaryrefslogtreecommitdiffstats
path: root/gdb/remote-nindy.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-nindy.c
parentd643978558037f6c74cb1180732283994fe83504 (diff)
downloadppe42-binutils-c20c1bdf992a90db69c4abb73594b2ff58154ef6.tar.gz
ppe42-binutils-c20c1bdf992a90db69c4abb73594b2ff58154ef6.zip
* 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-nindy.c')
-rw-r--r--gdb/remote-nindy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c
index aef95d5784..f9cac2bad2 100644
--- a/gdb/remote-nindy.c
+++ b/gdb/remote-nindy.c
@@ -197,7 +197,10 @@ nindy_open (name, from_tty)
/* Allow user to interrupt the following -- we could hang if there's
no NINDY at the other end of the remote tty. */
immediate_quit++;
- sprintf(baudrate, "%d", sr_get_baud_rate());
+ /* If baud_rate is -1, then ninConnect will not recognize the baud rate
+ and will deal with the situation in a (more or less) reasonable
+ fashion. */
+ sprintf(baudrate, "%d", baud_rate);
ninConnect(name, baudrate,
nindy_initial_brk, !from_tty, nindy_old_protocol);
immediate_quit--;
@@ -227,8 +230,9 @@ nindy_detach (name, from_tty)
static void
nindy_files_info ()
{
- printf_unfiltered("\tAttached to %s at %d bps%s%s.\n", savename,
- sr_get_baud_rate(),
+ /* FIXME: this lies about the baud rate if we autobauded. */
+ printf_unfiltered("\tAttached to %s at %d bits per second%s%s.\n", savename,
+ baud_rate,
nindy_old_protocol? " in old protocol": "",
nindy_initial_brk? " with initial break": "");
}
OpenPOWER on IntegriCloud