mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
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>
This commit is contained in:
parent
54bca63b5c
commit
85413975d8
15
gdb/thread.c
15
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);
|
||||
/* 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 ());
|
||||
}
|
||||
target_id_col_width
|
||||
= std::max (target_id_col_width,
|
||||
thread_target_id_str (tp).size ());
|
||||
|
||||
++n_threads;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user