return "";
}
- /* Reset this window. WIN_TYPE must match the existing type of this
- window (it is only passed for self-test purposes). The other
- parameters are used to set the window's size and position. */
- virtual void reset (enum tui_win_type win_type,
- int height, int width,
+ /* Reset this window. The parameters are used to set the window's
+ size and position. */
+ virtual void reset (int height, int width,
int origin_x, int origin_y);
/* Window handle. */
LINE_NO in this source window; false otherwise. */
virtual bool location_matches_p (struct bp_location *loc, int line_no) = 0;
- void reset (enum tui_win_type win_type,
- int height, int width,
+ void reset (int height, int width,
int origin_x, int origin_y) override;
/* Does the locator belong to this window? */
make_command_window (int height, int origin_y)
{
struct tui_win_info *result = new tui_cmd_window ();
- result->reset (CMD_WIN, height, tui_term_width (), 0, origin_y);
+ result->reset (height, tui_term_width (), 0, origin_y);
tui_make_window (result, DONT_BOX_WINDOW);
return result;
}
make_source_window (int height, int origin_y)
{
tui_win_info *result = new tui_source_window ();
- result->reset (SRC_WIN, height, tui_term_width (), 0, origin_y);
+ result->reset (height, tui_term_width (), 0, origin_y);
result->make_visible (true);
return result;
}
make_disasm_window (int height, int origin_y)
{
tui_win_info *result = new tui_disasm_window ();
- result->reset (SRC_WIN, height, tui_term_width (), 0, origin_y);
+ result->reset (height, tui_term_width (), 0, origin_y);
result->make_visible (true);
return result;
}
make_data_window (int height, int origin_y)
{
tui_win_info *result = new tui_data_window ();
- result->reset (DATA_WIN, height, tui_term_width (), 0, origin_y);
+ result->reset (height, tui_term_width (), 0, origin_y);
result->make_visible (true);
return result;
}
tui_win_list[SRC_WIN] = make_source_window (src_height, 0);
else
{
- TUI_SRC_WIN->reset (TUI_SRC_WIN->type,
- src_height,
+ TUI_SRC_WIN->reset (src_height,
tui_term_width (),
0,
0);
}
else
{
- locator->reset (LOCATOR_WIN,
- 2 /* 1 */ ,
+ locator->reset (2 /* 1 */ ,
tui_term_width (),
0,
(src_height + asm_height) - 1);
TUI_DISASM_WIN->m_has_locator = true;
- TUI_DISASM_WIN->reset (TUI_DISASM_WIN->type,
- asm_height,
+ TUI_DISASM_WIN->reset (asm_height,
tui_term_width (),
0,
src_height - 1);
= make_command_window (cmd_height, tui_term_height () - cmd_height);
else
{
- TUI_CMD_WIN->reset (TUI_CMD_WIN->type,
- TUI_CMD_WIN->height,
+ TUI_CMD_WIN->reset (TUI_CMD_WIN->height,
TUI_CMD_WIN->width,
0,
TUI_CMD_WIN->origin.y);
else
{
base = (tui_source_window_base *) tui_win_list[win_type];
- tui_win_list[win_type]->reset (tui_win_list[win_type]->type,
- src_height,
+ tui_win_list[win_type]->reset (src_height,
tui_term_width (),
0,
data_height - 1);
tui_make_visible (tui_win_list[win_type]);
- locator->reset (LOCATOR_WIN,
- 2 /* 1 */ ,
+ locator->reset (2 /* 1 */ ,
tui_term_width (),
0,
total_height - 1);
}
void
-tui_gen_win_info::reset (enum tui_win_type win_type,
- int height_, int width_,
+tui_gen_win_info::reset (int height_, int width_,
int origin_x_, int origin_y_)
{
int h = height_;
- gdb_assert (type == win_type);
-
width = width_;
height = h;
if (h > 1)
int height, int width,
int origin_x, int origin_y)
{
- win_info->reset (LOCATOR_WIN, height, width, origin_x, origin_y);
+ win_info->reset (height, width, origin_x, origin_y);
tui_make_window (win_info, DONT_BOX_WINDOW);
}
else
{
base = (tui_source_window_base *) *win_info_ptr;
- locator->reset (LOCATOR_WIN,
- 2 /* 1 */ ,
+ locator->reset (2 /* 1 */ ,
tui_term_width (),
0,
src_height - 1);
base->m_has_locator = true;
- (*win_info_ptr)->reset ((*win_info_ptr)->type,
- src_height - 1,
+ (*win_info_ptr)->reset (src_height - 1,
tui_term_width (),
0,
0);
}
else
{
- TUI_CMD_WIN->reset (TUI_CMD_WIN->type,
- TUI_CMD_WIN->height,
+ TUI_CMD_WIN->reset (TUI_CMD_WIN->height,
TUI_CMD_WIN->width,
TUI_CMD_WIN->origin.x,
TUI_CMD_WIN->origin.y);