This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Remove unnecessary calls to is_mi_like_p in print_thread_info_1
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sat, 09 Sep 2017 21:01:37 -0400
- Subject: [binutils-gdb] Remove unnecessary calls to is_mi_like_p in print_thread_info_1
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 0d64823e51de0b0e0a94bdf88940310342a6e6fa ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 0d64823e51de0b0e0a94bdf88940310342a6e6fa
Remove unnecessary calls to is_mi_like_p in print_thread_info_1
There are two calls to uiout->is_mi_like_p in the else branch of a
if (uiout->is_mi_like_p ()), we already know they will return false.
A bit lower, there are two if (!uiout->is_mi_like_p ()) that we can
merge.
gdb/ChangeLog:
* thread.c (print_thread_info_1): Remove unnecessary calls to
uiout->is_mi_like_p.