aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2010-05-05 22:53:54 +0000
committerMichael Snyder <msnyder@vmware.com>2010-05-05 22:53:54 +0000
commit0043e6a5cce8d245bc331f567f2714b954731b20 (patch)
tree215aba3f3625b092eb1f25966c0b941912e75c55 /gdb/tui
parentc31a71f44f3e8c56d1bce34c31b5da867a726477 (diff)
downloadgdb-0043e6a5cce8d245bc331f567f2714b954731b20.zip
gdb-0043e6a5cce8d245bc331f567f2714b954731b20.tar.gz
gdb-0043e6a5cce8d245bc331f567f2714b954731b20.tar.bz2
2010-05-05 Michael Snyder <msnyder@vmware.com>
* 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.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-interp.c1
-rw-r--r--gdb/tui/tui-regs.c5
-rw-r--r--gdb/tui/tui-win.c1
-rw-r--r--gdb/tui/tui-windata.c3
4 files changed, 2 insertions, 8 deletions
diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c
index 2a6c3ce..cb8ec87 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 a339bea..7c0ebce 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 80ca78a..50e054e 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 dd85f8e..54baf84 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