aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-06 17:30:02 -0600
committerTom Tromey <tom@tromey.com>2019-08-15 12:29:28 -0600
commit46f438e3d57bae1d74ab9a7e6cba380b0e58f552 (patch)
treea5b6b2f28d71b3455d1db36fdd2223595a6eeb1d /gdb/tui
parentf4ce562c7f7a95cab61bf298d289cd56f0802a95 (diff)
downloadgdb-46f438e3d57bae1d74ab9a7e6cba380b0e58f552.zip
gdb-46f438e3d57bae1d74ab9a7e6cba380b0e58f552.tar.gz
gdb-46f438e3d57bae1d74ab9a7e6cba380b0e58f552.tar.bz2
Remove tui_initialize_static_data
tui_initialize_static_data is not needed, because locator moving and resizing is already handled in the layout code. gdb/ChangeLog 2019-08-15 Tom Tromey <tom@tromey.com> * tui/tui-stack.c (tui_initialize_static_data): Remove. * tui/tui-interp.c (tui_interp::init): Don't call tui_initialize_static_data. * tui/tui-data.h (tui_initialize_static_data): Don't declare.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-data.h1
-rw-r--r--gdb/tui/tui-interp.c2
-rw-r--r--gdb/tui/tui-stack.c15
3 files changed, 0 insertions, 18 deletions
diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h
index b5eeecd..eaf3e06 100644
--- a/gdb/tui/tui-data.h
+++ b/gdb/tui/tui-data.h
@@ -317,7 +317,6 @@ struct all_tui_windows
/* Data Manipulation Functions. */
-extern void tui_initialize_static_data (void);
extern struct tui_win_info *tui_partial_win_by_name (const char *);
extern enum tui_layout_type tui_current_layout (void);
extern int tui_term_height (void);
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index d1146fe..ea562ac 100644
--- a/gdb/tui/tui-interp.c
+++ b/gdb/tui/tui-interp.c
@@ -242,8 +242,6 @@ tui_interp::init (bool top_level)
/* Install exit handler to leave the screen in a good shape. */
atexit (tui_exit);
- tui_initialize_static_data ();
-
tui_initialize_io ();
tui_initialize_win ();
if (ui_file_isatty (gdb_stdout))
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c
index f61aa52..f4d6d38 100644
--- a/gdb/tui/tui-stack.c
+++ b/gdb/tui/tui-stack.c
@@ -66,21 +66,6 @@ tui_locator_win_info_ptr (void)
return &_locator;
}
-void
-tui_initialize_static_data ()
-{
- tui_gen_win_info *win = tui_locator_win_info_ptr ();
- win->width =
- win->height =
- win->origin.x =
- win->origin.y =
- win->viewport_height = 0;
- win->handle = NULL;
- win->is_visible = false;
- win->title = 0;
-}
-
-
/* Create the status line to display as much information as we can on
this single line: target name, process number, current function,
current line, current PC, SingleKey mode. */