mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +08:00
* 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.
This commit is contained in:
parent
45f43ce2c0
commit
8e4c7b3e25
@ -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".
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user