-
-
-/* tuiUpdateOnEnd()
- ** elz: This function clears the execution info from the source windows
- ** and resets the locator to display no line info, procedure info, pc
- ** info. It is called by stack_publish_stopped_with_no_frame, which
- ** is called then the target terminates execution
- */
-void
-tuiUpdateOnEnd (void)
-{
- int i;
- TuiGenWinInfoPtr locator;
- char *filename;
- TuiWinInfoPtr winInfo;
-
- locator = locatorWinInfoPtr ();
-
- /* for all the windows (src, asm) */
- for (i = 0; i < (sourceWindows ())->count; i++)
- {
- TuiLineOrAddress l;
-
- winInfo = (TuiWinInfoPtr) (sourceWindows ())->list[i];
-
- l.addr = -1;
- l.lineNo = -1;
- tuiSetIsExecPointAt (l, winInfo); /* the target is'n running */
- /* -1 should not match any line number or pc */
- tuiSetExecInfoContent (winInfo); /*set winInfo so that > is'n displayed */
- tuiShowExecInfoContent (winInfo); /* display the new contents */
- }
-
- /*now update the locator */
- tuiClearLocatorDisplay ();
- tuiGetLocatorFilename (locator, &filename);
- tuiSetLocatorInfo (
- filename,
- (char *) NULL,
- 0,
- (CORE_ADDR) 0,
- &((TuiWinElementPtr) locator->content[0])->whichElement.locator);
- tuiShowLocatorContent ();
-
- return;
-} /* tuiUpdateOnEnd */
-
-
-