|
|
@ -66,44 +66,6 @@ |
|
|
extern int current_source_line; |
|
|
extern int current_source_line; |
|
|
extern struct symtab *current_source_symtab; |
|
|
extern struct symtab *current_source_symtab; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************
|
|
|
|
|
|
** STATIC LOCAL FUNCTIONS FORWARD DECLS ** |
|
|
|
|
|
******************************************/ |
|
|
|
|
|
|
|
|
|
|
|
/*****************************************
|
|
|
|
|
|
** STATIC LOCAL DATA ** |
|
|
|
|
|
******************************************/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*****************************************
|
|
|
|
|
|
** PUBLIC FUNCTIONS ** |
|
|
|
|
|
******************************************/ |
|
|
|
|
|
|
|
|
|
|
|
/*********************************
|
|
|
|
|
|
** SOURCE/DISASSEM FUNCTIONS ** |
|
|
|
|
|
*********************************/ |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
** tuiSrcWinIsDisplayed(). |
|
|
|
|
|
*/ |
|
|
|
|
|
int |
|
|
|
|
|
tuiSrcWinIsDisplayed (void) |
|
|
|
|
|
{ |
|
|
|
|
|
return (m_winPtrNotNull (srcWin) && srcWin->generic.isVisible); |
|
|
|
|
|
} /* tuiSrcWinIsDisplayed */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
** tuiAsmWinIsDisplayed(). |
|
|
|
|
|
*/ |
|
|
|
|
|
int |
|
|
|
|
|
tuiAsmWinIsDisplayed (void) |
|
|
|
|
|
{ |
|
|
|
|
|
return (m_winPtrNotNull (disassemWin) && disassemWin->generic.isVisible); |
|
|
|
|
|
} /* tuiAsmWinIsDisplayed */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
|
** tuiDisplayMainFunction(). |
|
|
** tuiDisplayMainFunction(). |
|
|
** Function to display the "main" routine" |
|
|
** Function to display the "main" routine" |
|
|
@ -401,21 +363,6 @@ tuiShowSourceContent (TuiWinInfoPtr winInfo) |
|
|
} /* tuiShowSourceContent */ |
|
|
} /* tuiShowSourceContent */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
** tuiShowAllSourceWinsContent() |
|
|
|
|
|
*/ |
|
|
|
|
|
void |
|
|
|
|
|
tuiShowAllSourceWinsContent (void) |
|
|
|
|
|
{ |
|
|
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < (sourceWindows ())->count; i++) |
|
|
|
|
|
tuiShowSourceContent ((TuiWinInfoPtr) (sourceWindows ())->list[i]); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
} /* tuiShowAllSourceWinsContent */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
|
** tuiHorizontalSourceScroll(). |
|
|
** tuiHorizontalSourceScroll(). |
|
|
** Scroll the source forward or backward horizontally |
|
|
** Scroll the source forward or backward horizontally |
|
|
@ -686,22 +633,6 @@ tuiEraseExecInfoContent (TuiWinInfoPtr winInfo) |
|
|
return; |
|
|
return; |
|
|
} /* tuiEraseExecInfoContent */ |
|
|
} /* tuiEraseExecInfoContent */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
** tuiEraseAllExecInfosContent() |
|
|
|
|
|
*/ |
|
|
|
|
|
void |
|
|
|
|
|
tuiEraseAllExecInfosContent (void) |
|
|
|
|
|
{ |
|
|
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < (sourceWindows ())->count; i++) |
|
|
|
|
|
tuiEraseExecInfoContent ((TuiWinInfoPtr) (sourceWindows ())->list[i]); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
} /* tuiEraseAllExecInfosContent */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
|
** tuiClearExecInfoContent(). |
|
|
** tuiClearExecInfoContent(). |
|
|
*/ |
|
|
*/ |
|
|
@ -714,22 +645,6 @@ tuiClearExecInfoContent (TuiWinInfoPtr winInfo) |
|
|
return; |
|
|
return; |
|
|
} /* tuiClearExecInfoContent */ |
|
|
} /* tuiClearExecInfoContent */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
** tuiClearAllExecInfosContent() |
|
|
|
|
|
*/ |
|
|
|
|
|
void |
|
|
|
|
|
tuiClearAllExecInfosContent (void) |
|
|
|
|
|
{ |
|
|
|
|
|
int i; |
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < (sourceWindows ())->count; i++) |
|
|
|
|
|
tuiClearExecInfoContent ((TuiWinInfoPtr) (sourceWindows ())->list[i]); |
|
|
|
|
|
|
|
|
|
|
|
return; |
|
|
|
|
|
} /* tuiClearAllExecInfosContent */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
/*
|
|
|
** tuiUpdateExecInfo(). |
|
|
** tuiUpdateExecInfo(). |
|
|
** Function to update the execution info window |
|
|
** Function to update the execution info window |
|
|
@ -756,55 +671,6 @@ tuiUpdateAllExecInfos (void) |
|
|
return; |
|
|
return; |
|
|
} /* tuiUpdateAllExecInfos */ |
|
|
} /* tuiUpdateAllExecInfos */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 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 */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TuiStatus |
|
|
TuiStatus |
|
|
tuiAllocSourceBuffer (TuiWinInfoPtr winInfo) |
|
|
tuiAllocSourceBuffer (TuiWinInfoPtr winInfo) |
|
|
{ |
|
|
{ |
|
|
|