diff options
author | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 20:52:56 +0000 |
---|---|---|
committer | Stephane Carrez <stcarrez@nerim.fr> | 2001-07-21 20:52:56 +0000 |
commit | c7c228ed4b3cfd370852683a0221c1d5bb1f5756 (patch) | |
tree | e8ea0970cbca38ca182742fd3033946abee94d57 /gdb/tui/tuiStack.c | |
parent | 377c38eacc2d289a9863d374b9fa8bf6741f304d (diff) | |
download | gdb-c7c228ed4b3cfd370852683a0221c1d5bb1f5756.zip gdb-c7c228ed4b3cfd370852683a0221c1d5bb1f5756.tar.gz gdb-c7c228ed4b3cfd370852683a0221c1d5bb1f5756.tar.bz2 |
* tuiStack.c (tuiSetLocatorInfo): Cleanup.
* tuiStack.h (tuiGetLocatorFilename): Declare.
* tuiRegs.h (tuiFirstRegElementNoInLine): Declare.
* tuiData.h (addToSourceWindows): Declare.
Diffstat (limited to 'gdb/tui/tuiStack.c')
-rw-r--r-- | gdb/tui/tuiStack.c | 26 |
1 files changed, 2 insertions, 24 deletions
diff --git a/gdb/tui/tuiStack.c b/gdb/tui/tuiStack.c index b3e4931..bf02dec 100644 --- a/gdb/tui/tuiStack.c +++ b/gdb/tui/tuiStack.c @@ -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 */ +} /* |