diff options
author | Ari Hannula <ari.hannula@intel.com> | 2022-05-16 13:43:31 +0200 |
---|---|---|
committer | Christina Schimpe <christina.schimpe@intel.com> | 2023-03-31 13:49:21 +0200 |
commit | 85413975d80cdb69efd09211d01fc96e00a84dd0 (patch) | |
tree | eeb24fdce8747a51e6908bba4a8a6f2eb9cc594a /gdb/thread.c | |
parent | 54bca63b5c3714e1032bf32754dbadaff424221a (diff) | |
download | gdb-85413975d80cdb69efd09211d01fc96e00a84dd0.zip gdb-85413975d80cdb69efd09211d01fc96e00a84dd0.tar.gz gdb-85413975d80cdb69efd09211d01fc96e00a84dd0.tar.bz2 |
gdb: Remove extra if statement
The removed if statement is already checked in the parent if else
statement.
Co-Authored-By: Christina Schimpe <christina.schimpe@intel.com>
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index 3d4cba3..25d97cd6 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -1083,16 +1083,13 @@ print_thread_info_1 (struct ui_out *uiout, const char *requested_threads, global_ids, pid, tp)) continue; - if (!uiout->is_mi_like_p ()) - { - /* Switch inferiors so we're looking at the right - target stack. */ - switch_to_inferior_no_thread (tp->inf); - - target_id_col_width - = std::max (target_id_col_width, - thread_target_id_str (tp).size ()); - } + /* Switch inferiors so we're looking at the right + target stack. */ + switch_to_inferior_no_thread (tp->inf); + + target_id_col_width + = std::max (target_id_col_width, + thread_target_id_str (tp).size ()); ++n_threads; } |