Make warning usable earlier
authorGary Benson <gbenson@redhat.com>
Tue, 5 Aug 2014 12:27:49 +0000 (13:27 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 29 Aug 2014 09:12:00 +0000 (10:12 +0100)
commit0d2f5c0791fda17ebbc503c5e7716fcb619318fc
tree1322f6c15840caca6f0b040ab30fb99f45dc281a
parent5df43998152f7096f8eed45c24a4fad5a3244d8b
Make warning usable earlier

warning will crash if called before the first call to set_width.  This
commit makes the warning usable from the moment gdb_stderr is set up.

gdb/ChangeLog:

* utils.c (vwarning): Protect calls to target_terminal_ours
and wrap_here.
gdb/ChangeLog
gdb/utils.c