fcc2bd46472745432cd17bebfb943d758ae6cab6
[deliverable/binutils-gdb.git] / gdb / tui / tuiSourceWin.h
1 /* TUI display source/assembly window.
2 Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Hewlett-Packard Company.
4
5 This file is part of GDB.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
21
22 #ifndef _TUI_SOURCEWIN_H
23 #define _TUI_SOURCEWIN_H
24
25 extern void tuiDisplayMainFunction (void);
26 extern void tuiUpdateSourceWindow (TuiWinInfoPtr, struct symtab *, Opaque,
27 int);
28 extern void tuiUpdateSourceWindowAsIs (TuiWinInfoPtr, struct symtab *, Opaque,
29 int);
30 extern void tuiUpdateSourceWindowsWithAddr (CORE_ADDR);
31 extern void tui_vUpdateSourceWindowsWithAddr (va_list);
32 extern void tuiUpdateSourceWindowsWithLine (struct symtab *, int);
33 extern void tui_vUpdateSourceWindowsWithLine (va_list);
34 extern void tuiUpdateSourceWindowsFromLocator (void);
35 extern void tuiClearSourceContent (TuiWinInfoPtr, int);
36 extern void tuiClearAllSourceWinsContent (int);
37 extern void tuiEraseSourceContent (TuiWinInfoPtr, int);
38 extern void tuiEraseAllSourceWinsContent (int);
39 extern void tuiSetSourceContentNil (TuiWinInfoPtr, char *);
40 extern void tuiShowSourceContent (TuiWinInfoPtr);
41 extern void tuiShowAllSourceWinsContent (void);
42 extern void tuiHorizontalSourceScroll (TuiWinInfoPtr, TuiScrollDirection,
43 int);
44 extern void tuiUpdateOnEnd (void);
45
46 extern TuiStatus tuiSetExecInfoContent (TuiWinInfoPtr);
47 extern void tuiShowExecInfoContent (TuiWinInfoPtr);
48 extern void tuiShowAllExecInfosContent (void);
49 extern void tuiEraseExecInfoContent (TuiWinInfoPtr);
50 extern void tuiEraseAllExecInfosContent (void);
51 extern void tuiClearExecInfoContent (TuiWinInfoPtr);
52 extern void tuiClearAllExecInfosContent (void);
53 extern void tuiUpdateExecInfo (TuiWinInfoPtr);
54 extern void tuiUpdateAllExecInfos (void);
55
56 extern void tuiSetIsExecPointAt (Opaque, TuiWinInfoPtr);
57 extern void tuiSetHasBreakAt (struct breakpoint *, TuiWinInfoPtr, int);
58 extern void tuiAllSetHasBreakAt (struct breakpoint *, int);
59 extern void tui_vAllSetHasBreakAt (va_list);
60 extern TuiStatus tuiAllocSourceBuffer (TuiWinInfoPtr);
61 extern int tuiLineIsDisplayed (Opaque, TuiWinInfoPtr, int);
62
63
64 /*
65 ** Constant definitions
66 */
67 #define SCROLL_THRESHOLD 2 /* threshold for lazy scroll */
68
69
70 /*
71 ** Macros
72 */
73 #define m_tuiSetBreakAt(bp, winInfo) tuiSetHasBreakAt((bp, winInfo, TRUE)
74 #define m_tuiClearBreakAt(bp, winInfo) tuiSetHasBreakAt(bp, winInfo, FALSE)
75
76 #define m_tuiAllSetBreakAt(bp) tuiAllSetHasBreakAt(bp, TRUE)
77 #define m_tuiAllClearBreakAt(bp) tuiAllSetHasBreakAt(bp, FALSE)
78
79 #define m_tuiSrcLineDisplayed(lineNo) tuiLineIsDisplayed((Opaque)(lineNo), srcWin, FALSE)
80 #define m_tuiSrcAddrDisplayed(addr) tuiLineIsDisplayed((Opaque)(addr), disassemWin, FALSE)
81 #define m_tuiSrcLineDisplayedWithinThreshold(lineNo) \
82 tuiLineIsDisplayed((Opaque)(lineNo), srcWin, TRUE)
83 #define m_tuiSrcAddrDisplayedWithinThreshold(addr) \
84 tuiLineIsDisplayed((Opaque)(addr), disassemWin, TRUE)
85 #define m_tuiLineDisplayedWithinThreshold(winInfo, lineOrAddr) \
86 ( (winInfo == srcWin) ? \
87 m_tuiSrcLineDisplayedWithinThreshold(lineOrAddr) : \
88 m_tuiSrcAddrDisplayedWithinThreshold(lineOrAddr) )
89
90
91
92 #endif
93 /*_TUI_SOURCEWIN_H */
This page took 0.03408 seconds and 4 git commands to generate.