gdb/tui: don't leak the known_window_types map
authorAndrew Burgess <aburgess@redhat.com>
Thu, 12 Jan 2023 16:18:53 +0000 (16:18 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 13 Feb 2023 14:50:51 +0000 (14:50 +0000)
commitd27ff777c65654bc4166165cc45743fcc7bae3a0
treee2c2ac155bd04e7994152cf671eac35a0f9b67c2
parent9ae4519da9026cf1748a7e78783847de530de488
gdb/tui: don't leak the known_window_types map

This commit finishes the task that was started in the previous
commit.

Now that all Python TUI window factories are correctly deleted when
the Python interpreter is shut down, we no longer need to dynamically
allocate the known_window_types map in tui-layout.c

This commit changes known_window_types to a statically allocated data
structure, removes the dynamic allocation from
initialize_known_windows, and then replaces lots of '->' with '.'
throughout this file.

There should be no user visible changes after this commit.

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/tui/tui-layout.c