This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit/tui] Cleanup tui-stack.h


committed,
Andrew
Index: ChangeLog
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.

Index: tui/tui-disasm.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-disasm.c,v
retrieving revision 1.3
diff -u -r1.3 tui-disasm.c
--- tui/tui-disasm.c	23 Jan 2004 23:25:17 -0000	1.3
+++ tui/tui-disasm.c	28 Jan 2004 23:15:19 -0000
@@ -313,10 +313,10 @@
       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;
Index: tui/tui-hooks.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-hooks.c,v
retrieving revision 1.15
diff -u -r1.15 tui-hooks.c
--- tui/tui-hooks.c	19 Jan 2004 04:31:50 -0000	1.15
+++ tui/tui-hooks.c	28 Jan 2004 23:15:19 -0000
@@ -1,6 +1,6 @@
 /* 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.
 
@@ -250,7 +250,7 @@
         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))
@@ -268,7 +268,7 @@
                                    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.
@@ -276,7 +276,7 @@
 static void
 tui_detach_hook (void)
 {
-  tuiShowFrameInfo (0);
+  tui_show_frame_info (0);
   tui_display_main ();
 }
 
Index: tui/tui-layout.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-layout.c,v
retrieving revision 1.4
diff -u -r1.4 tui-layout.c
--- tui/tui-layout.c	23 Jan 2004 23:25:17 -0000	1.4
+++ tui/tui-layout.c	28 Jan 2004 23:15:19 -0000
@@ -842,7 +842,7 @@
 	      srcWin->detail.sourceInfo.hasLocator = FALSE;
 	      disassemWin->detail.sourceInfo.hasLocator = TRUE;
 	      m_beVisible (locator);
-	      tuiShowLocatorContent ();
+	      tui_show_locator_content ();
 	      tuiShowSourceContent (disassemWin);
 
 	      if (m_winPtrIsNull (cmdWin))
@@ -933,7 +933,7 @@
     }
   winList[winType]->detail.sourceInfo.hasLocator = TRUE;
   m_beVisible (locator);
-  tuiShowLocatorContent ();
+  tui_show_locator_content ();
   addToSourceWindows (winList[winType]);
   setCurrentLayoutTo (newLayout);
 
@@ -1113,7 +1113,7 @@
 	{
 	  (*winInfoPtr)->detail.sourceInfo.hasLocator = TRUE;
 	  m_beVisible (locator);
-	  tuiShowLocatorContent ();
+	  tui_show_locator_content ();
 	  tuiShowSourceContent (*winInfoPtr);
 
 	  if (m_winPtrIsNull (cmdWin))
Index: tui/tui-stack.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-stack.c,v
retrieving revision 1.1
diff -u -r1.1 tui-stack.c
--- tui/tui-stack.c	19 Jan 2004 04:31:51 -0000	1.1
+++ tui/tui-stack.c	28 Jan 2004 23:15:19 -0000
@@ -1,7 +1,7 @@
 /* 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.
 
@@ -244,11 +244,9 @@
   return name;
 }
 
-/*
-   ** tuiShowLocatorContent()
- */
+/* tuiShowLocatorContent().   */
 void
-tuiShowLocatorContent (void)
+tui_show_locator_content (void)
 {
   char *string;
   TuiGenWinInfoPtr locator;
@@ -318,15 +316,15 @@
 
 /* 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;
@@ -347,7 +345,7 @@
                             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++)
 	{
@@ -405,7 +403,7 @@
   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];
Index: tui/tui-stack.h
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-stack.h,v
retrieving revision 1.1
diff -u -r1.1 tui-stack.h
--- tui/tui-stack.h	19 Jan 2004 04:31:51 -0000	1.1
+++ tui/tui-stack.h	28 Jan 2004 23:15:19 -0000
@@ -1,5 +1,8 @@
 /* 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.
@@ -19,15 +22,13 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#ifndef _TUI_STACK_H
-#define _TUI_STACK_H
-/*
-   ** This header file supports
- */
-
-extern void tuiUpdateLocatorFilename (const char *);
-extern void tuiShowLocatorContent (void);
-extern void tuiShowFrameInfo (struct frame_info *);
+#ifndef TUI_STACK_H
+#define TUI_STACK_H
+
+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*/
Index: tui/tui-win.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-win.c,v
retrieving revision 1.3
diff -u -r1.3 tui-win.c
--- tui/tui-win.c	20 Jan 2004 21:56:22 -0000	1.3
+++ tui/tui-win.c	28 Jan 2004 23:15:19 -0000
@@ -615,7 +615,7 @@
 	    }
 	}
     }
-  tuiShowLocatorContent ();
+  tui_show_locator_content ();
 }
 
 
@@ -1410,7 +1410,7 @@
       if (m_hasLocator (winInfo))
 	{
 	  m_beVisible (locatorWinInfoPtr ());
-	  tuiShowLocatorContent ();
+	  tui_show_locator_content ();
 	}
       break;
     case DATA_WIN:
Index: tui/tui-winsource.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui-winsource.c,v
retrieving revision 1.2
diff -u -r1.2 tui-winsource.c
--- tui/tui-winsource.c	20 Jan 2004 21:56:22 -0000	1.2
+++ tui/tui-winsource.c	28 Jan 2004 23:15:19 -0000
@@ -63,9 +63,9 @@
 	  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 ("??");
 	}
     }
 }
Index: tui/tui.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tui.c,v
retrieving revision 1.35
diff -u -r1.35 tui.c
--- tui/tui.c	23 Jan 2004 23:25:17 -0000	1.35
+++ tui/tui.c	28 Jan 2004 23:15:19 -0000
@@ -1,7 +1,7 @@
 /* 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.
 
@@ -299,7 +299,7 @@
   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
@@ -388,7 +388,7 @@
       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);
@@ -413,7 +413,7 @@
 
   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);
@@ -566,7 +566,7 @@
   tui_add_win_to_layout (SRC_WIN);
 
   tuiUpdateSourceWindowsWithLine (cursal.symtab, line);
-  tuiUpdateLocatorFilename (file);
+  tui_update_locator_filename (file);
 }
 
 void

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]