diff options
author | Kung Hsu <kung@cygnus> | 1994-08-10 17:37:56 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1994-08-10 17:37:56 +0000 |
commit | d48d9a282a3189422ef20d9e4ad8bd41d63f801c (patch) | |
tree | ddc539ec34ddbe964a574db823bf1e7b51100bc8 /gdb/remote-mips.c | |
parent | 8ea882c6df740540449efe4ec7d325e79f23750a (diff) | |
download | gdb-d48d9a282a3189422ef20d9e4ad8bd41d63f801c.zip gdb-d48d9a282a3189422ef20d9e4ad8bd41d63f801c.tar.gz gdb-d48d9a282a3189422ef20d9e4ad8bd41d63f801c.tar.bz2 |
Modified Files:
ChangeLog remote-mips.c
* remote-mips.c (mips_open): add code to handle baud rate.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 4b4ad2e..09ae553 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -1005,6 +1005,15 @@ device is attached to the target board (e.g., /dev/ttya)."); if (mips_desc == (serial_t) NULL) perror_with_name (name); + if (baud_rate != -1) + { + if (SERIAL_SETBAUDRATE (mips_desc, baud_rate)) + { + SERIAL_CLOSE (mips_desc); + perror_with_name (name); + } + } + SERIAL_RAW (mips_desc); mips_is_open = 1; |