• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisionc9753adb0153fbb5ce01583881862642e7f126af (tree)
Time2020-07-02 12:21:14
AuthorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

Remove useless "if' from tui-regs.c

tui_data_window::show_register_group had a useless "if" -- the
condition could never be false. This patch removes it.

gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>

* tui/tui-regs.c (tui_data_window::show_register_group): Remove
useless "if".

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
11 2020-07-01 Tom Tromey <tom@tromey.com>
22
3+ * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4+ useless "if".
5+
6+2020-07-01 Tom Tromey <tom@tromey.com>
7+
38 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
49 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
510
--- a/gdb/tui/tui-regs.c
+++ b/gdb/tui/tui-regs.c
@@ -257,15 +257,12 @@ tui_data_window::show_register_group (struct reggroup *group,
257257 continue;
258258
259259 data_item_win = &m_regs_content[pos];
260- if (data_item_win)
260+ if (!refresh_values_only)
261261 {
262- if (!refresh_values_only)
263- {
264- data_item_win->item_no = regnum;
265- data_item_win->highlight = false;
266- }
267- tui_get_register (frame, data_item_win, regnum, 0);
262+ data_item_win->item_no = regnum;
263+ data_item_win->highlight = false;
268264 }
265+ tui_get_register (frame, data_item_win, regnum, 0);
269266 pos++;
270267 }
271268 }