• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision2ecc4b757df777b13c438485be2fe2601820df90 (tree)
l'heure2020-01-06 23:08:50
AuteurPedro Alves <palves@redh...>
CommiterPedro Alves

Message de Log

exceptions.c:print_flush: Remove obsolete check

Commit 20f0d60db4fb ("Avoid crash when calling warning too early"),
added a "current_top_target () != NULL" check to
target_supports_terminal_ours, so this check in exceptions.c is now
obsolete.

gdb/ChangeLog:
yyyy-mm-dd Pedro Alves <palves@redhat.com>

* exceptions.c (print_flush): Remove current_top_target() check.

Change Summary

Modification

--- a/gdb/exceptions.c
+++ b/gdb/exceptions.c
@@ -39,11 +39,7 @@ print_flush (void)
3939 deprecated_error_begin_hook ();
4040
4141 gdb::optional<target_terminal::scoped_restore_terminal_state> term_state;
42- /* While normally there's always something pushed on the target
43- stack, the NULL check is needed here because we can get here very
44- early during startup, before the target stack is first
45- initialized. */
46- if (current_top_target () != NULL && target_supports_terminal_ours ())
42+ if (target_supports_terminal_ours ())
4743 {
4844 term_state.emplace ();
4945 target_terminal::ours_for_output ();