summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-03-11 18:18:47 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-03-11 18:18:47 +0000
commit8e4c7b3e255fc2961aa8db48ba0ca99a6b156f4f (patch)
treee331eeee0d26e61253cf8f437641b8f40326d816 /gdb
parent45f43ce2c0b4612d146aeb5bad4f94a4e020a567 (diff)
downloadbinutils-gdb-8e4c7b3e255fc2961aa8db48ba0ca99a6b156f4f.tar.gz
* main.c (main): When printing warning about bad baud rate, don't
use warning(); it relies on current_target which isn't set up yet.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/main.c8
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 83d6cb3f7f9..021ca473000 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,8 @@
Fri Mar 11 08:08:50 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
+ * main.c (main): When printing warning about bad baud rate, don't
+ use warning(); it relies on current_target which isn't set up yet.
+
* breakpoint.c (_initialize_breakpoint): Update docstring for
tbreak to match what the code actually does. Don't mention tbreak
in docstrings for "enable once" or "enable breakpoints once".
diff --git a/gdb/main.c b/gdb/main.c
index 54418efea45..edefa30bb5d 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -690,7 +690,13 @@ main (argc, argv)
i = strtol (optarg, &p, 0);
if (i == 0 && p == optarg)
- warning ("Could not set baud rate to `%s'.\n", optarg);
+
+ /* Don't use *_filtered or warning() (which relies on
+ current_target) until after initialize_all_files(). */
+
+ fprintf_unfiltered
+ (gdb_stderr,
+ "warning: could not set baud rate to `%s'.\n", optarg);
else
baud_rate = i;
}