From d48d9a282a3189422ef20d9e4ad8bd41d63f801c Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Wed, 10 Aug 1994 17:37:56 +0000 Subject: [PATCH] Modified Files: ChangeLog remote-mips.c * remote-mips.c (mips_open): add code to handle baud rate. --- gdb/ChangeLog | 4 ++++ gdb/remote-mips.c | 9 +++++++++ 2 files changed, 13 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c7397d666f..2716e129011 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Wed Aug 10 10:33:20 1994 Kung Hsu (kung@mexican.cygnus.com) + + * remote-mips.c (mips_open): add code to handle baud rate. + Tue Aug 9 09:44:42 1994 Stu Grossman (grossman@cygnus.com) * infrun.c (wait_for_inferior): Call target_resume() upon diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 4b4ad2eb3fc..09ae553780a 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; -- 2.30.2