* tuiWin.c, tuiWin.h, tui.c, tui.h, tuiCommand.c: Add FSF copyright.
[deliverable/binutils-gdb.git] / gdb / tui / tuiSourceWin.h
CommitLineData
f377b406
SC
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
c906108c
SS
22#ifndef _TUI_SOURCEWIN_H
23#define _TUI_SOURCEWIN_H
c906108c 24
a14ed312 25extern void tuiDisplayMainFunction (void);
f7778913
KB
26extern void tuiUpdateSourceWindow (TuiWinInfoPtr, struct symtab *, Opaque,
27 int);
28extern void tuiUpdateSourceWindowAsIs (TuiWinInfoPtr, struct symtab *, Opaque,
29 int);
a14ed312
KB
30extern void tuiUpdateSourceWindowsWithAddr (Opaque);
31extern void tui_vUpdateSourceWindowsWithAddr (va_list);
32extern void tuiUpdateSourceWindowsWithLine (struct symtab *, int);
33extern void tui_vUpdateSourceWindowsWithLine (va_list);
34extern void tuiUpdateSourceWindowsFromLocator (void);
35extern void tuiClearSourceContent (TuiWinInfoPtr, int);
36extern void tuiClearAllSourceWinsContent (int);
37extern void tuiEraseSourceContent (TuiWinInfoPtr, int);
38extern void tuiEraseAllSourceWinsContent (int);
39extern void tuiSetSourceContentNil (TuiWinInfoPtr, char *);
40extern void tuiShowSourceContent (TuiWinInfoPtr);
41extern void tuiShowAllSourceWinsContent (void);
42extern void tuiHorizontalSourceScroll (TuiWinInfoPtr, TuiScrollDirection,
43 int);
44extern void tuiUpdateOnEnd (void);
45
46extern TuiStatus tuiSetExecInfoContent (TuiWinInfoPtr);
47extern void tuiShowExecInfoContent (TuiWinInfoPtr);
48extern void tuiShowAllExecInfosContent (void);
49extern void tuiEraseExecInfoContent (TuiWinInfoPtr);
50extern void tuiEraseAllExecInfosContent (void);
51extern void tuiClearExecInfoContent (TuiWinInfoPtr);
52extern void tuiClearAllExecInfosContent (void);
53extern void tuiUpdateExecInfo (TuiWinInfoPtr);
54extern void tuiUpdateAllExecInfos (void);
55
56extern void tuiSetIsExecPointAt (Opaque, TuiWinInfoPtr);
57extern void tuiSetHasBreakAt (struct breakpoint *, TuiWinInfoPtr, int);
58extern void tuiAllSetHasBreakAt (struct breakpoint *, int);
59extern void tui_vAllSetHasBreakAt (va_list);
60extern TuiStatus tuiAllocSourceBuffer (TuiWinInfoPtr);
61extern int tuiLineIsDisplayed (Opaque, TuiWinInfoPtr, int);
c906108c
SS
62
63
64/*
c5aa993b
JM
65 ** Constant definitions
66 */
67#define SCROLL_THRESHOLD 2 /* threshold for lazy scroll */
c906108c
SS
68
69
70/*
c5aa993b
JM
71 ** Macros
72 */
c906108c
SS
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
c5aa993b
JM
92#endif
93/*_TUI_SOURCEWIN_H */
This page took 0.154567 seconds and 4 git commands to generate.