From: Michael Snyder Date: Wed, 5 May 2010 22:53:54 +0000 (+0000) Subject: 2010-05-05 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0043e6a5cce8d245bc331f567f2714b954731b20;p=binutils-gdb.git 2010-05-05 Michael Snyder * tui/tui-interp.c (_initialize_tui_interp): Delete unused variable. * tui/tui-regs.c tui_display_registers_from): Delete unused variable. (tui_check_register_values): Delete unused variable. (tui_register_format): Delete unused variable. * tui/tui-win.c (_initialize_tui_win): Delete unused variable. * tui/tui-windata.c (tui_display_data_from_line): Delete unused variables. (tui_vertical_data_scroll): Delete unused variables. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ea32dd330fe..e1014a1e927 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,16 @@ +2010-05-05 Michael Snyder + + * tui/tui-interp.c (_initialize_tui_interp): + Delete unused variable. + * tui/tui-regs.c tui_display_registers_from): + Delete unused variable. + (tui_check_register_values): Delete unused variable. + (tui_register_format): Delete unused variable. + * tui/tui-win.c (_initialize_tui_win): Delete unused variable. + * tui/tui-windata.c (tui_display_data_from_line): + Delete unused variables. + (tui_vertical_data_scroll): Delete unused variables. + 2010-05-05 Michael Snyder * remote.c (remote_threads_info): Revert questionable part of diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index 2a6c3ce885e..cb8ec87a92b 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.c @@ -222,7 +222,6 @@ _initialize_tui_interp (void) tui_display_prompt_p, tui_command_loop, }; - struct interp *tui_interp; /* Create a default uiout builder for the TUI. */ tui_out = tui_out_new (gdb_stdout); diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index a339beadc60..7c0ebce6654 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -321,7 +321,7 @@ tui_display_registers_from (int start_element_no) && display_info->regs_content_count > 0) { int i = start_element_no; - int j, value_chars_wide, item_win_width, cur_y; + int j, item_win_width, cur_y; int max_len = 0; for (i = 0; i < display_info->regs_content_count; i++) @@ -504,7 +504,7 @@ tui_check_register_values (struct frame_info *frame) tui_show_registers (display_info->current_group); else { - int i, j; + int i; for (i = 0; (i < display_info->regs_content_count); i++) { @@ -684,7 +684,6 @@ tui_register_format (struct frame_info *frame, const char *name; struct cleanup *cleanups; char *p, *s; - int pos; struct type *type = register_type (gdbarch, regnum); name = gdbarch_register_name (gdbarch, regnum); diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 80ca78a1585..50e054e6f2e 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -356,7 +356,6 @@ extern initialize_file_ftype _initialize_tui_win; void _initialize_tui_win (void) { - struct cmd_list_element *c; static struct cmd_list_element *tui_setlist; static struct cmd_list_element *tui_showlist; diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c index dd85f8e72c7..54baf84a14d 100644 --- a/gdb/tui/tui-windata.c +++ b/gdb/tui/tui-windata.c @@ -168,7 +168,6 @@ tui_display_data_from_line (int line_no) tui_display_registers_from_line (_line_no, TRUE); else { - int element_no, start_line_no; int regs_last_line = tui_last_regs_line_no (); @@ -283,8 +282,6 @@ tui_vertical_data_scroll (enum tui_scroll_direction scroll_direction, if (first_line >= 0) { - int last_element_no, last_line; - if (scroll_direction == FORWARD_SCROLL) first_line += num_to_scroll; else