diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-09 22:51:58 +0200 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-09-09 22:51:58 +0200 |
commit | 0d64823e51de0b0e0a94bdf88940310342a6e6fa (patch) | |
tree | db293235435a849e602a99c2d2bd176dc03bf5dc /gdb/ChangeLog | |
parent | eb1e02fd05688c28686a02f197c5e7cb0a5d6a27 (diff) | |
download | binutils-0d64823e51de0b0e0a94bdf88940310342a6e6fa.zip binutils-0d64823e51de0b0e0a94bdf88940310342a6e6fa.tar.gz binutils-0d64823e51de0b0e0a94bdf88940310342a6e6fa.tar.bz2 |
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1bcc95a..e8c69f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-09-09 Simon Marchi <simon.marchi@ericsson.com> + + * thread.c (print_thread_info_1): Remove unnecessary calls to + uiout->is_mi_like_p. + 2017-09-09 Tom Tromey <tom@tromey.com> * namespace.h (add_using_directive): Update. |