1 |
578 |
markom |
#ifndef _TUI_SOURCEWIN_H
|
2 |
|
|
#define _TUI_SOURCEWIN_H
|
3 |
|
|
/*
|
4 |
|
|
** This header file supports
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
extern void tuiDisplayMainFunction (void);
|
9 |
|
|
extern void tuiUpdateSourceWindow (TuiWinInfoPtr, struct symtab *, Opaque,
|
10 |
|
|
int);
|
11 |
|
|
extern void tuiUpdateSourceWindowAsIs (TuiWinInfoPtr, struct symtab *, Opaque,
|
12 |
|
|
int);
|
13 |
|
|
extern void tuiUpdateSourceWindowsWithAddr (Opaque);
|
14 |
|
|
extern void tui_vUpdateSourceWindowsWithAddr (va_list);
|
15 |
|
|
extern void tuiUpdateSourceWindowsWithLine (struct symtab *, int);
|
16 |
|
|
extern void tui_vUpdateSourceWindowsWithLine (va_list);
|
17 |
|
|
extern void tuiUpdateSourceWindowsFromLocator (void);
|
18 |
|
|
extern void tuiClearSourceContent (TuiWinInfoPtr, int);
|
19 |
|
|
extern void tuiClearAllSourceWinsContent (int);
|
20 |
|
|
extern void tuiEraseSourceContent (TuiWinInfoPtr, int);
|
21 |
|
|
extern void tuiEraseAllSourceWinsContent (int);
|
22 |
|
|
extern void tuiSetSourceContentNil (TuiWinInfoPtr, char *);
|
23 |
|
|
extern void tuiShowSourceContent (TuiWinInfoPtr);
|
24 |
|
|
extern void tuiShowAllSourceWinsContent (void);
|
25 |
|
|
extern void tuiHorizontalSourceScroll (TuiWinInfoPtr, TuiScrollDirection,
|
26 |
|
|
int);
|
27 |
|
|
extern void tuiUpdateOnEnd (void);
|
28 |
|
|
|
29 |
|
|
extern TuiStatus tuiSetExecInfoContent (TuiWinInfoPtr);
|
30 |
|
|
extern void tuiShowExecInfoContent (TuiWinInfoPtr);
|
31 |
|
|
extern void tuiShowAllExecInfosContent (void);
|
32 |
|
|
extern void tuiEraseExecInfoContent (TuiWinInfoPtr);
|
33 |
|
|
extern void tuiEraseAllExecInfosContent (void);
|
34 |
|
|
extern void tuiClearExecInfoContent (TuiWinInfoPtr);
|
35 |
|
|
extern void tuiClearAllExecInfosContent (void);
|
36 |
|
|
extern void tuiUpdateExecInfo (TuiWinInfoPtr);
|
37 |
|
|
extern void tuiUpdateAllExecInfos (void);
|
38 |
|
|
|
39 |
|
|
extern void tuiSetIsExecPointAt (Opaque, TuiWinInfoPtr);
|
40 |
|
|
extern void tuiSetHasBreakAt (struct breakpoint *, TuiWinInfoPtr, int);
|
41 |
|
|
extern void tuiAllSetHasBreakAt (struct breakpoint *, int);
|
42 |
|
|
extern void tui_vAllSetHasBreakAt (va_list);
|
43 |
|
|
extern TuiStatus tuiAllocSourceBuffer (TuiWinInfoPtr);
|
44 |
|
|
extern int tuiLineIsDisplayed (Opaque, TuiWinInfoPtr, int);
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
/*
|
48 |
|
|
** Constant definitions
|
49 |
|
|
*/
|
50 |
|
|
#define SCROLL_THRESHOLD 2 /* threshold for lazy scroll */
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
/*
|
54 |
|
|
** Macros
|
55 |
|
|
*/
|
56 |
|
|
#define m_tuiSetBreakAt(bp, winInfo) tuiSetHasBreakAt((bp, winInfo, TRUE)
|
57 |
|
|
#define m_tuiClearBreakAt(bp, winInfo) tuiSetHasBreakAt(bp, winInfo, FALSE)
|
58 |
|
|
|
59 |
|
|
#define m_tuiAllSetBreakAt(bp) tuiAllSetHasBreakAt(bp, TRUE)
|
60 |
|
|
#define m_tuiAllClearBreakAt(bp) tuiAllSetHasBreakAt(bp, FALSE)
|
61 |
|
|
|
62 |
|
|
#define m_tuiSrcLineDisplayed(lineNo) tuiLineIsDisplayed((Opaque)(lineNo), srcWin, FALSE)
|
63 |
|
|
#define m_tuiSrcAddrDisplayed(addr) tuiLineIsDisplayed((Opaque)(addr), disassemWin, FALSE)
|
64 |
|
|
#define m_tuiSrcLineDisplayedWithinThreshold(lineNo) \
|
65 |
|
|
tuiLineIsDisplayed((Opaque)(lineNo), srcWin, TRUE)
|
66 |
|
|
#define m_tuiSrcAddrDisplayedWithinThreshold(addr) \
|
67 |
|
|
tuiLineIsDisplayed((Opaque)(addr), disassemWin, TRUE)
|
68 |
|
|
#define m_tuiLineDisplayedWithinThreshold(winInfo, lineOrAddr) \
|
69 |
|
|
( (winInfo == srcWin) ? \
|
70 |
|
|
m_tuiSrcLineDisplayedWithinThreshold(lineOrAddr) : \
|
71 |
|
|
m_tuiSrcAddrDisplayedWithinThreshold(lineOrAddr) )
|
72 |
|
|
|
73 |
|
|
|
74 |
|
|
|
75 |
|
|
#endif
|
76 |
|
|
/*_TUI_SOURCEWIN_H */
|