gdb/tui: Don't cast between window types.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 6 Jul 2015 15:56:42 +0000 (16:56 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Mon, 6 Jul 2015 18:13:02 +0000 (19:13 +0100)
commit10e9aaa3b8554f997db993c8158493a96030d4d5
tree8748c8447415ff87c8f7151cd65dfae64abe2e9c
parent8a13d42d99390c36d5e7884b509e6bb92ec72e3c
gdb/tui: Don't cast between window types.

Instead of casting between structure types to get the 'tui_gen_win_info'
info from a 'tui_win_info' access the generic member variable.  This is
inline with what is done throughout the rest of the tui code.

gdb/ChangeLog:

* tui/tui-win.c (tui_set_focus): Use structure member 'generic'
instead of casting the structure type.
gdb/ChangeLog
gdb/tui/tui-win.c
This page took 0.024933 seconds and 4 git commands to generate.