diff options
author | Pedro Alves <palves@redhat.com> | 2020-01-10 20:05:43 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-01-10 20:05:43 +0000 |
commit | 74375d182e992778ef8701278c02a742db6be77e (patch) | |
tree | eb4a259568b18203c77ad98a8f49d43bce367a07 /gdb/exceptions.c | |
parent | acdf84a65400f416c60a0c9c14953ba5a73fb0cd (diff) | |
download | gdb-74375d182e992778ef8701278c02a742db6be77e.zip gdb-74375d182e992778ef8701278c02a742db6be77e.tar.gz gdb-74375d182e992778ef8701278c02a742db6be77e.tar.bz2 |
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:
2020-01-10 Pedro Alves <palves@redhat.com>
* exceptions.c (print_flush): Remove current_top_target() check.
Diffstat (limited to 'gdb/exceptions.c')
-rw-r--r-- | gdb/exceptions.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/exceptions.c b/gdb/exceptions.c index 587988a..52cee4e 100644 --- a/gdb/exceptions.c +++ b/gdb/exceptions.c @@ -39,11 +39,7 @@ print_flush (void) deprecated_error_begin_hook (); gdb::optional<target_terminal::scoped_restore_terminal_state> term_state; - /* While normally there's always something pushed on the target - stack, the NULL check is needed here because we can get here very - early during startup, before the target stack is first - initialized. */ - if (current_top_target () != NULL && target_supports_terminal_ours ()) + if (target_supports_terminal_ours ()) { term_state.emplace (); target_terminal::ours_for_output (); |