* tui/tui-windata.h: Update copyright. Include "tui-data.h".
(tui_erase_data_content): Rename tuiEraseDataContent.
(tui_display_all_data): Rename tuiDisplayAllData.
(tui_check_data_values): Rename tuiCheckDataValues.
(tui_display_data_from_line): Rename tuiDisplayDataFromLine.
(tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
(tui_first_data_element_no_in_line): Rename
tuiFirstDataElementNoInLine.
(tui_delete_data_content_windows): Rename
tuiDeleteDataContentWindows.
(tui_refresh_data_win): Rename tuiRefreshDataWin.
(tui_display_data_from): Rename tuiDisplayDataFrom.
(tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
* tui/tui-windata.c, tui/tui-hooks.c: Update references.
* tui/tui-win.c, tui/tui-regs.c: Update references.
* tui/tui-layout.c, tui/tui.c: Update references.
2004-02-06 Andrew Cagney <cagney@redhat.com>
+ * tui/tui-windata.h: Update copyright. Include "tui-data.h".
+ (tui_erase_data_content): Rename tuiEraseDataContent.
+ (tui_display_all_data): Rename tuiDisplayAllData.
+ (tui_check_data_values): Rename tuiCheckDataValues.
+ (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
+ (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
+ (tui_first_data_element_no_in_line): Rename
+ tuiFirstDataElementNoInLine.
+ (tui_delete_data_content_windows): Rename
+ tuiDeleteDataContentWindows.
+ (tui_refresh_data_win): Rename tuiRefreshDataWin.
+ (tui_display_data_from): Rename tuiDisplayDataFrom.
+ (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
+ * tui/tui-windata.c, tui/tui-hooks.c: Update references.
+ * tui/tui-win.c, tui/tui-regs.c: Update references.
+ * tui/tui-layout.c, tui/tui.c: Update references.
+
* tui/tui-wingeneral.h: Update copyright.
(m_allBeVisible): Delete macro.
(m_allBeInvisible): Delete macro.
if (fi && tui_refreshing_registers == 0)
{
tui_refreshing_registers = 1;
- tuiCheckDataValues (fi);
+ tui_check_data_values (fi);
tui_refreshing_registers = 0;
}
}
if (tui_is_window_visible (DATA_WIN))
{
tui_refreshing_registers = 1;
- tuiCheckDataValues (fi);
+ tui_check_data_values (fi);
tui_refreshing_registers = 0;
}
}
if (!regsPopulate &&
(newLayout == SRC_DATA_COMMAND ||
newLayout == DISASSEM_DATA_COMMAND))
- tuiDisplayAllData ();
+ tui_display_all_data ();
tui_update_source_windows_with_addr (addr);
}
if (ret == TUI_FAILURE)
{
dataWin->detail.dataDisplayInfo.regsDisplayType = TUI_UNDEFINED_REGS;
- tuiEraseDataContent (NO_REGS_STRING);
+ tui_erase_data_content (NO_REGS_STRING);
}
else
{
dataItemWin->content[0])->whichElement.data)->highlight = FALSE;
}
dataWin->detail.dataDisplayInfo.regsDisplayType = dpyType;
- tuiDisplayAllData ();
+ tui_display_all_data ();
}
(tuiLayoutDef ())->regsDisplayType = dpyType;
else if (winToScroll == disassemWin)
tui_vertical_disassem_scroll (FORWARD_SCROLL, _numToScroll);
else if (winToScroll == dataWin)
- tuiVerticalDataScroll (FORWARD_SCROLL, _numToScroll);
+ tui_vertical_data_scroll (FORWARD_SCROLL, _numToScroll);
}
return;
else if (winToScroll == disassemWin)
tui_vertical_disassem_scroll (BACKWARD_SCROLL, _numToScroll);
else if (winToScroll == dataWin)
- tuiVerticalDataScroll (BACKWARD_SCROLL, _numToScroll);
+ tui_vertical_data_scroll (BACKWARD_SCROLL, _numToScroll);
}
return;
} /* tuiScrollBackward */
tui_update_exec_info (winList[type]);
break;
case DATA_WIN:
- tuiRefreshDataWin ();
+ tui_refresh_data_win ();
break;
default:
break;
}
if (dataWin && dataWin->generic.isVisible)
- tuiRefreshDataWin ();
+ tui_refresh_data_win ();
tuiFree (bufPtr);
printf_filtered ("Focus set to %s window.\n",
winName ((TuiGenWinInfoPtr) tuiWinWithFocus ()));
}
break;
case DATA_WIN:
- tuiDisplayAllData ();
+ tui_display_all_data ();
break;
case CMD_WIN:
winInfo->detail.commandInfo.curLine = 0;
void
-tuiEraseDataContent (char *prompt)
+tui_erase_data_content (char *prompt)
{
werase (dataWin->generic.handle);
tui_check_and_display_highlight_if_needed (dataWin);
prompt);
}
wrefresh (dataWin->generic.handle);
-
- return;
-} /* tuiEraseDataContent */
+}
-/*
- ** tuiDisplayAllData().
- ** This function displays the data that is in the data window's
- ** content. It does not set the content.
- */
+/* This function displays the data that is in the data window's
+ content. It does not set the content. */
void
-tuiDisplayAllData (void)
+tui_display_all_data (void)
{
if (dataWin->generic.contentSize <= 0)
- tuiEraseDataContent (NO_DATA_STRING);
+ tui_erase_data_content (NO_DATA_STRING);
else
{
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
tuiDeleteDataContentWindows ();
tui_check_and_display_highlight_if_needed (dataWin);
tui_display_registers_from (0);
{
}
}
- return;
-} /* tuiDisplayAllData */
+}
/*
if (firstLine >= 0)
{
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
if (!reuseWindows)
tuiDeleteDataContentWindows ();
tuiDisplayDataFromLine (firstLine);
} /* tuiDisplayDataFrom */
-/*
- ** tuiRefreshDataWin()
- ** Function to redisplay the contents of the data window.
- */
+/* Function to redisplay the contents of the data window. */
void
-tuiRefreshDataWin (void)
+tui_refresh_data_win (void)
{
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
if (dataWin->generic.contentSize > 0)
{
int firstElement = tuiFirstDataItemDisplayed ();
if (firstElement >= 0) /* re-use existing windows */
tuiDisplayDataFrom (firstElement, TRUE);
}
-
- return;
-} /* tuiRefreshDataWin */
+}
-/*
- ** tuiCheckDataValues().
- ** Function to check the data values and hilite any that have changed
- */
+/* Function to check the data values and hilite any that have changed. */
void
-tuiCheckDataValues (struct frame_info *frame)
+tui_check_data_values (struct frame_info *frame)
{
tui_check_register_values (frame);
#endif
}
}
-} /* tuiCheckDataValues */
+}
-/*
- ** tuiVerticalDataScroll()
- ** Scroll the data window vertically forward or backward.
- */
+/* Scroll the data window vertically forward or backward. */
void
-tuiVerticalDataScroll (TuiScrollDirection scrollDirection, int numToScroll)
+tui_vertical_data_scroll (TuiScrollDirection scrollDirection, int numToScroll)
{
int firstElementNo;
int firstLine = (-1);
firstLine += numToScroll;
else
firstLine -= numToScroll;
- tuiEraseDataContent ((char *) NULL);
+ tui_erase_data_content ((char *) NULL);
tuiDeleteDataContentWindows ();
tuiDisplayDataFromLine (firstLine);
}
/* Data/register window display.
- Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+ Copyright 1998, 1999, 2000, 2001, 2004 Free Software Foundation,
+ Inc.
+
Contributed by Hewlett-Packard Company.
This file is part of GDB.
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#ifndef _TUI_DATAWIN_H
-#define _TUI_DATAWIN_H
-
-
-/*****************************************
-** TYPE DEFINITIONS **
-******************************************/
-
+#ifndef TUI_WINDATA_H
+#define TUI_WINDATA_H
+#include "tui/tui-data.h"
-/*****************************************
-** PUBLIC FUNCTION EXTERNAL DECLS **
-******************************************/
-extern void tuiEraseDataContent (char *);
-extern void tuiDisplayAllData (void);
-extern void tuiCheckDataValues (struct frame_info *);
-extern void tuiDisplayDataFromLine (int);
-extern int tuiFirstDataItemDisplayed (void);
-extern int tuiFirstDataElementNoInLine (int);
-extern void tuiDeleteDataContentWindows (void);
-extern void tuiRefreshDataWin (void);
-extern void tuiDisplayDataFrom (int, int);
-extern void tuiVerticalDataScroll (TuiScrollDirection, int);
+extern void tui_erase_data_content (char *);
+extern void tui_display_all_data (void);
+extern void tui_check_data_values (struct frame_info *);
+extern void tui_display_data_from_line (int);
+extern int tui_first_data_item_displayed (void);
+extern int tui_first_data_element_no_in_line (int);
+extern void tui_delete_data_content_windows (void);
+extern void tui_refresh_data_win (void);
+extern void tui_display_data_from (int, int);
+extern void tui_vertical_data_scroll (enum tui_scroll_direction, int);
#endif
-/*_TUI_DATAWIN_H*/
{
tuiSetWinFocusTo (winInfo);
if (dataWin && dataWin->generic.isVisible)
- tuiRefreshDataWin ();
+ tui_refresh_data_win ();
keypad (cmdWin->generic.handle, (winInfo != cmdWin));
}
return 0;