aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tuiStack.c
diff options
context:
space:
mode:
authorStephane Carrez <stcarrez@nerim.fr>2002-08-25 10:04:08 +0000
committerStephane Carrez <stcarrez@nerim.fr>2002-08-25 10:04:08 +0000
commitd059f789de8c289a9cded3e825abb3c53c7d239e (patch)
treeeef881dff6417679317a7ab48aa23a6af48b1b9a /gdb/tui/tuiStack.c
parent3a42771a8e4c02ef6d52820cd5c1f0f3ca5bb71b (diff)
downloadgdb-d059f789de8c289a9cded3e825abb3c53c7d239e.zip
gdb-d059f789de8c289a9cded3e825abb3c53c7d239e.tar.gz
gdb-d059f789de8c289a9cded3e825abb3c53c7d239e.tar.bz2
* tuiStack.h (tuiGetLocatorFilename): Don't declare.
(tuiUpdateLocatorDisplay): Likewise. * tuiStack.c (tuiGetLocatorFilename): Remove. (tuiShowFrameInfo): Use tuiSetLocatorContent and tuiShowLocatorContent instead of tuiUpdateLocatorDisplay. (tuiUpdateLocatorDisplay): Remove.
Diffstat (limited to 'gdb/tui/tuiStack.c')
-rw-r--r--gdb/tui/tuiStack.c47
1 files changed, 4 insertions, 43 deletions
diff --git a/gdb/tui/tuiStack.c b/gdb/tui/tuiStack.c
index 5ceecaf..e2c8a27 100644
--- a/gdb/tui/tuiStack.c
+++ b/gdb/tui/tuiStack.c
@@ -187,32 +187,6 @@ tuiSwitchFilename (char *fileName)
return;
} /* tuiSwitchFilename */
-
-/*
- ** tuiGetLocatorFilename().
- ** Get the filename portion of the locator.
- ** (elz)
- */
-void
-tuiGetLocatorFilename (TuiGenWinInfoPtr locator, char **filename)
-{
-
- /* the current filename could be non known, in which case the xmalloc would
- allocate no memory, because the length would be 0 */
- if (((TuiWinElementPtr) locator->content[0])->whichElement.locator.fileName)
- {
- int name_length =
- strlen (((TuiWinElementPtr) locator->content[0])->whichElement.locator.fileName);
-
- (*filename) = (char *) xmalloc (name_length + 1);
- strcpy ((*filename),
- ((TuiWinElementPtr) locator->content[0])->whichElement.locator.fileName);
- }
-
- return;
-} /* tuiGetLocatorFilename */
-
-
/*
** tuiUpdateLocatorInfoFromFrame().
** Function to update the locator, with the information extracted from frameInfo
@@ -278,21 +252,6 @@ tuiSetLocatorContent (struct frame_info *frameInfo)
return;
} /* tuiSetLocatorContent */
-
-/*
- ** tuiUpdateLocatorDisplay().
- ** Function to update the locator display
- */
-void
-tuiUpdateLocatorDisplay (struct frame_info *frameInfo)
-{
- tuiSetLocatorContent (frameInfo);
- tuiShowLocatorContent ();
-
- return;
-} /* tuiUpdateLocatorDisplay */
-
-
/*
** tuiShowFrameInfo().
** Function to print the frame inforrmation for the TUI.
@@ -318,7 +277,8 @@ tuiShowFrameInfo (struct frame_info *fi)
startLine = 0;
sourceAlreadyDisplayed = tuiSourceIsDisplayed (s->filename);
- tuiUpdateLocatorDisplay (fi);
+ tuiSetLocatorContent (fi);
+ tuiShowLocatorContent ();
for (i = 0; i < (sourceWindows ())->count; i++)
{
TuiWhichElement *item;
@@ -373,7 +333,8 @@ tuiShowFrameInfo (struct frame_info *fi)
}
else
{
- tuiUpdateLocatorDisplay (fi);
+ tuiSetLocatorContent (fi);
+ tuiShowLocatorContent ();
for (i = 0; i < (sourceWindows ())->count; i++)
{
winInfo = (TuiWinInfoPtr) (sourceWindows ())->list[i];