aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1995-04-29 06:34:44 +0000
committerStu Grossman <grossman@cygnus>1995-04-29 06:34:44 +0000
commite2bc2606ae85b98d5e4747a993a204cb49c856fd (patch)
tree6cdb82a817e1582519332b4b7396de21111bbc74
parentad0c0b7ffdf878e71e9b54a2172ecef6385526f5 (diff)
downloadgdb-e2bc2606ae85b98d5e4747a993a204cb49c856fd.zip
gdb-e2bc2606ae85b98d5e4747a993a204cb49c856fd.tar.gz
gdb-e2bc2606ae85b98d5e4747a993a204cb49c856fd.tar.bz2
* array-rom.c (_initialize_array array_open): Move baud_rate
initialization from _initxxx to array_open to fix bug with overriding -b command line option.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/array-rom.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4d995c6..cf9439f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+Fri Apr 28 23:30:00 1995 Stu Grossman (grossman@cygnus.com)
+
+ * array-rom.c (_initialize_array array_open): Move baud_rate
+ initialization from _initxxx to array_open to fix bug with
+ overriding -b command line option.
+
Thu Apr 27 20:29:34 1995 Doug Evans <dje@canuck.cygnus.com>
* Makefile.in (RUNTEST): Fix reference of `srcdir'.
diff --git a/gdb/array-rom.c b/gdb/array-rom.c
index 23c20a8..9f59bd7 100644
--- a/gdb/array-rom.c
+++ b/gdb/array-rom.c
@@ -102,6 +102,7 @@ array_open(args, from_tty)
tmp_mips_processor_type = "lsi33k"; /* change the default from r3051 */
mips_set_processor_type_command ("lsi33k", 0);
+ baud_rate = 4800; /* this is the only supported baud rate */
monitor_open (args, &array_cmds, from_tty);
}
@@ -120,7 +121,6 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
array_ops.to_open = array_open;
add_target (&array_ops);
- baud_rate = 4800; /* this is the only supported baud rate */
}