Make error usable earlier
authorGary Benson <gbenson@redhat.com>
Tue, 5 Aug 2014 12:25:48 +0000 (13:25 +0100)
committerGary Benson <gbenson@redhat.com>
Fri, 29 Aug 2014 09:11:59 +0000 (10:11 +0100)
commit5df43998152f7096f8eed45c24a4fad5a3244d8b
treedfa1349c4c4ba1aac8d5ffdfcc52e01f8a7c06aa
parent2437fd32f17cb11338949cff1fd0741e14ce1681
Make error usable earlier

error (and other exception-throwing functions) are callable from the
first line of captured_main, but the exception printing code will
crash if called before the first call to set_width.  This commit makes
the exception printing code usable from the moment gdb_stderr is set
up.

gdb/ChangeLog:

* exceptions.c (print_flush): Protect calls to
target_terminal_ours and wrap_here.
gdb/ChangeLog
gdb/exceptions.c