* tui/tui-stack.h: Update copyright.
(struct frame_info): Add opaque declaration.
(tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
(tui_show_locator_content): Rename tuiShowLocatorContent.
(tui_show_frame_info): Rename tuiShowFrameInfo.
* tui/tui-stack.c: Update copyright. Update references.
* tui/tui-winsource.c: Update references.
* tui/tui-win.c: Update references.
* tui/tui-layout.c: Update references.
* tui/tui-hooks.c: Update copyright, update references.
* tui/tui.c: Update copyright, update references.
* tui/tui-disasm.c: Update references.
+2004-01-28 Andrew Cagney <cagney@redhat.com>
+
+ * tui/tui-stack.h: Update copyright.
+ (struct frame_info): Add opaque declaration.
+ (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
+ (tui_show_locator_content): Rename tuiShowLocatorContent.
+ (tui_show_frame_info): Rename tuiShowFrameInfo.
+ * tui/tui-stack.c: Update copyright. Update references.
+ * tui/tui-winsource.c: Update references.
+ * tui/tui-win.c: Update references.
+ * tui/tui-layout.c: Update references.
+ * tui/tui-hooks.c: Update copyright, update references.
+ * tui/tui.c: Update copyright, update references.
+ * tui/tui-disasm.c: Update references.
+
2004-01-28 David Carlton <carlton@kealia.com>
* dwarf2read.c (add_partial_structure): Use demangled name if
if (sal.symtab)
{
set_current_source_symtab_and_line (&sal);
- tuiUpdateLocatorFilename (sal.symtab->filename);
+ tui_update_locator_filename (sal.symtab->filename);
}
else
- tuiUpdateLocatorFilename ("?");
+ tui_update_locator_filename ("?");
}
return;
/* GDB hooks for TUI.
- Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GDB.
select_source_symtab (s);
/* Display the frame position (even if there is no symbols). */
- tuiShowFrameInfo (fi);
+ tui_show_frame_info (fi);
/* Refresh the register window if it's visible. */
if (tui_is_window_visible (DATA_WIN))
int stopline, int noerror)
{
select_source_symtab (s);
- tuiShowFrameInfo (deprecated_selected_frame);
+ tui_show_frame_info (deprecated_selected_frame);
}
/* Called when the target process died or is detached.
static void
tui_detach_hook (void)
{
- tuiShowFrameInfo (0);
+ tui_show_frame_info (0);
tui_display_main ();
}
srcWin->detail.sourceInfo.hasLocator = FALSE;
disassemWin->detail.sourceInfo.hasLocator = TRUE;
m_beVisible (locator);
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
tuiShowSourceContent (disassemWin);
if (m_winPtrIsNull (cmdWin))
}
winList[winType]->detail.sourceInfo.hasLocator = TRUE;
m_beVisible (locator);
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
addToSourceWindows (winList[winType]);
setCurrentLayoutTo (newLayout);
{
(*winInfoPtr)->detail.sourceInfo.hasLocator = TRUE;
m_beVisible (locator);
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
tuiShowSourceContent (*winInfoPtr);
if (m_winPtrIsNull (cmdWin))
/* TUI display locator.
- Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
- Inc.
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software
+ Foundation, Inc.
Contributed by Hewlett-Packard Company.
return name;
}
-/*
- ** tuiShowLocatorContent()
- */
+/* tuiShowLocatorContent(). */
void
-tuiShowLocatorContent (void)
+tui_show_locator_content (void)
{
char *string;
TuiGenWinInfoPtr locator;
/* Update only the filename portion of the locator. */
void
-tuiUpdateLocatorFilename (const char *filename)
+tui_update_locator_filename (const char *filename)
{
tui_set_locator_filename (filename);
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
}
/* Function to print the frame information for the TUI. */
void
-tuiShowFrameInfo (struct frame_info *fi)
+tui_show_frame_info (struct frame_info *fi)
{
TuiWinInfoPtr winInfo;
register int i;
tui_get_function_from_frame (fi),
sal.line,
get_frame_pc (fi));
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
startLine = 0;
for (i = 0; i < (sourceWindows ())->count; i++)
{
else
{
tui_set_locator_info (NULL, NULL, 0, (CORE_ADDR) 0);
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
for (i = 0; i < (sourceWindows ())->count; i++)
{
winInfo = (TuiWinInfoPtr) (sourceWindows ())->list[i];
/* TUI display locator.
- Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright 1998, 1999, 2000, 2001, 2002, 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_STACK_H
-#define _TUI_STACK_H
-/*
- ** This header file supports
- */
+#ifndef TUI_STACK_H
+#define TUI_STACK_H
+
+struct frame_info;
-extern void tuiUpdateLocatorFilename (const char *);
-extern void tuiShowLocatorContent (void);
-extern void tuiShowFrameInfo (struct frame_info *);
+extern void tui_update_locator_filename (const char *);
+extern void tui_show_locator_content (void);
+extern void tui_show_frame_info (struct frame_info *);
#endif
-/*_TUI_STACK_H*/
}
}
}
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
}
if (m_hasLocator (winInfo))
{
m_beVisible (locatorWinInfoPtr ());
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
}
break;
case DATA_WIN:
tuiUpdateSourceWindowsWithAddr (addr);
sal = find_pc_line (addr, 0);
if (sal.symtab)
- tuiUpdateLocatorFilename (sal.symtab->filename);
+ tui_update_locator_filename (sal.symtab->filename);
else
- tuiUpdateLocatorFilename ("??");
+ tui_update_locator_filename ("??");
}
}
}
/* General functions for the WDB TUI.
- Copyright 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation,
- Inc.
+ Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software
+ Foundation, Inc.
Contributed by Hewlett-Packard Company.
tui_current_key_mode = mode;
rl_set_keymap (mode == tui_single_key_mode
? tui_keymap : tui_readline_standard_keymap);
- tuiShowLocatorContent ();
+ tui_show_locator_content ();
}
/* Initialize readline and configure the keymap for the switching
setTermWidthTo (COLS);
def_prog_mode ();
- tuiShowFrameInfo (0);
+ tui_show_frame_info (0);
tui_set_layout (SRC_COMMAND, TUI_UNDEFINED_REGS);
tuiSetWinFocusTo (srcWin);
keypad (cmdWin->generic.handle, TRUE);
tui_active = 1;
if (deprecated_selected_frame)
- tuiShowFrameInfo (deprecated_selected_frame);
+ tui_show_frame_info (deprecated_selected_frame);
/* Restore TUI keymap. */
tui_set_key_mode (tui_current_key_mode);
tui_add_win_to_layout (SRC_WIN);
tuiUpdateSourceWindowsWithLine (cursal.symtab, line);
- tuiUpdateLocatorFilename (file);
+ tui_update_locator_filename (file);
}
void