diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-11 18:18:47 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-03-11 18:18:47 +0000 |
commit | 8e4c7b3e255fc2961aa8db48ba0ca99a6b156f4f (patch) | |
tree | e331eeee0d26e61253cf8f437641b8f40326d816 /gdb/main.c | |
parent | 45f43ce2c0b4612d146aeb5bad4f94a4e020a567 (diff) | |
download | gdb-8e4c7b3e255fc2961aa8db48ba0ca99a6b156f4f.zip gdb-8e4c7b3e255fc2961aa8db48ba0ca99a6b156f4f.tar.gz gdb-8e4c7b3e255fc2961aa8db48ba0ca99a6b156f4f.tar.bz2 |
* 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/main.c')
-rw-r--r-- | gdb/main.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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; } |