aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-io.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 13:55:51 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:30 -0600
commit81491aa0968e5bcab0388914f909ccb12e084e32 (patch)
treef7842a0373f0f8a55549761358f9611d6cb2cb0b /gdb/tui/tui-io.c
parente6e4150110bcee66adfadb9f126eb3bb1fd7c054 (diff)
downloadgdb-81491aa0968e5bcab0388914f909ccb12e084e32.zip
gdb-81491aa0968e5bcab0388914f909ccb12e084e32.tar.gz
gdb-81491aa0968e5bcab0388914f909ccb12e084e32.tar.bz2
Remove struct tui_command_info
Like the previous patch, this removes tui_command_info in favor of putting it elements directly into tui_cmd_window. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-layout.c (show_source_disasm_command) (show_source_or_disasm_and_command): Update. * tui/tui-io.c (update_cmdwin_start_line) (tui_redisplay_readline): Update. * tui/tui-data.h (struct tui_command_info): Remove. (struct tui_win_info) <detail>: Remove command_info member. (struct tui_data_window) <start_line>: New member, from tui_command_info. (TUI_CMD_WIN): Add casts.
Diffstat (limited to 'gdb/tui/tui-io.c')
-rw-r--r--gdb/tui/tui-io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c
index 31c1c76..cdb14bf 100644
--- a/gdb/tui/tui-io.c
+++ b/gdb/tui/tui-io.c
@@ -179,7 +179,7 @@ do_tui_putc (WINDOW *w, char c)
static void
update_cmdwin_start_line ()
{
- TUI_CMD_WIN->detail.command_info.start_line
+ TUI_CMD_WIN->start_line
= getcury (TUI_CMD_WIN->generic.handle);
}
@@ -539,7 +539,7 @@ tui_redisplay_readline (void)
c_pos = -1;
c_line = -1;
w = TUI_CMD_WIN->generic.handle;
- start_line = TUI_CMD_WIN->detail.command_info.start_line;
+ start_line = TUI_CMD_WIN->start_line;
wmove (w, start_line, 0);
prev_col = 0;
height = 1;
@@ -580,17 +580,17 @@ tui_redisplay_readline (void)
waddch (w, c);
}
if (c == '\n')
- TUI_CMD_WIN->detail.command_info.start_line = getcury (w);
+ TUI_CMD_WIN->start_line = getcury (w);
col = getcurx (w);
if (col < prev_col)
height++;
prev_col = col;
}
wclrtobot (w);
- TUI_CMD_WIN->detail.command_info.start_line = getcury (w);
+ TUI_CMD_WIN->start_line = getcury (w);
if (c_line >= 0)
wmove (w, c_line, c_pos);
- TUI_CMD_WIN->detail.command_info.start_line -= height - 1;
+ TUI_CMD_WIN->start_line -= height - 1;
wrefresh (w);
fflush(stdout);