This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Fix some tui warnings
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH]: Fix some tui warnings
- From: Stephane Carrez <Stephane dot Carrez at worldnet dot fr>
- Date: Sat, 21 Jul 2001 22:58:29 +0200
Hi!
I've committed the following patch that fixes various warnings.
Stephane
2001-07-21 Stephane Carrez <Stephane.Carrez@worldnet.fr>
* tuiStack.c (tuiSetLocatorInfo): Cleanup.
* tuiStack.h (tuiGetLocatorFilename): Declare.
* tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
* tuiData.h (addToSourceWindows): Declare.
Index: tuiData.h
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiData.h,v
retrieving revision 1.5
diff -u -p -r1.5 tuiData.h
--- tuiData.h 2001/07/18 20:59:00 1.5
+++ tuiData.h 2001/07/21 20:48:07
@@ -367,4 +367,6 @@ extern void tuiSetWinResizedTo (int);
extern TuiWinInfoPtr tuiNextWin (TuiWinInfoPtr);
extern TuiWinInfoPtr tuiPrevWin (TuiWinInfoPtr);
+extern void addToSourceWindows (TuiWinInfoPtr winInfo);
+
#endif /* TUI_DATA_H */
Index: tuiRegs.h
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiRegs.h,v
retrieving revision 1.3
diff -u -p -r1.3 tuiRegs.h
--- tuiRegs.h 2001/07/14 19:01:25 1.3
+++ tuiRegs.h 2001/07/21 20:48:07
@@ -41,7 +41,7 @@ extern int tuiLastRegElementInLine (int)
extern int tuiLineFromRegElementNo (int);
extern void tuiToggleFloatRegs (void);
extern int tuiCalculateRegsColumnCount (TuiRegisterDisplayType);
-
+extern int tuiFirstRegElementNoInLine (int lineno);
#endif
/*_TUI_REGS_H*/
Index: tuiStack.c
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiStack.c,v
retrieving revision 1.9
diff -u -p -r1.9 tuiStack.c
--- tuiStack.c 2001/07/20 23:06:48 1.9
+++ tuiStack.c 2001/07/21 20:48:07
@@ -107,40 +107,18 @@ tuiShowLocatorContent (void)
} /* tuiShowLocatorContent */
-/*
- ** tuiSetLocatorInfo().
- ** Function to update the locator, with the provided arguments.
- */
+/* Update the locator, with the provided arguments. */
void
tuiSetLocatorInfo (char *fname, char *procname, int lineNo,
CORE_ADDR addr, TuiLocatorElementPtr element)
{
-#ifdef COMMENT
- /* first free the old info */
- if (element->fileName)
- tuiFree (element->fileName);
- if (element->procName)
- tuiFree (element->procName);
-
- if (fname == (char *) NULL)
- element->fileName = fname;
- else
- element->fileName = tuiStrDup (fname);
- if (procname == (char *) NULL)
- element->procName = procname;
- else
- element->procName = tuiStrDup (procname);
-#else
element->fileName[0] = (char) 0;
element->procName[0] = (char) 0;
strcat_to_buf (element->fileName, MAX_LOCATOR_ELEMENT_LEN, fname);
strcat_to_buf (element->procName, MAX_LOCATOR_ELEMENT_LEN, procname);
-#endif
element->lineNo = lineNo;
element->addr = addr;
-
- return;
-} /* tuiSetLocatorInfo */
+}
/*
Index: tuiStack.h
===================================================================
RCS file: /cvs/src/src/gdb/tui/tuiStack.h,v
retrieving revision 1.5
diff -u -p -r1.5 tuiStack.h
--- tuiStack.h 2001/07/20 23:06:48 1.5
+++ tuiStack.h 2001/07/21 20:48:07
@@ -34,6 +34,7 @@ extern void tuiUpdateLocatorDisplay (str
extern void tuiSetLocatorContent (struct frame_info *);
extern void tuiShowLocatorContent (void);
extern void tuiClearLocatorContent (void);
+extern void tuiClearLocatorDisplay (void);
extern void tuiSwitchFilename (char *);
extern void tuiShowFrameInfo (struct frame_info *);
extern void tuiGetLocatorFilename (TuiGenWinInfoPtr, char **);