803cb900f966f3980c6a3f80f8cf9db583d87cb4
[binutils-gdb.git] / gdb / tui / tuiSourceWin.h
1 /* TUI display source/assembly window.
2 Copyright 1998, 1999, 2000, 2001, 2002 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 /* Function to display the "main" routine. */
26 extern void tui_display_main (void);
27 extern void tuiUpdateSourceWindow (TuiWinInfoPtr, struct symtab *, TuiLineOrAddress,
28 int);
29 extern void tuiUpdateSourceWindowAsIs (TuiWinInfoPtr, struct symtab *, TuiLineOrAddress,
30 int);
31 extern void tuiUpdateSourceWindowsWithAddr (CORE_ADDR);
32 extern void tuiUpdateSourceWindowsWithLine (struct symtab *, int);
33 extern void tuiUpdateSourceWindowsFromLocator (void);
34 extern void tuiClearSourceContent (TuiWinInfoPtr, int);
35 extern void tuiEraseSourceContent (TuiWinInfoPtr, int);
36 extern void tuiSetSourceContentNil (TuiWinInfoPtr, char *);
37 extern void tuiShowSourceContent (TuiWinInfoPtr);
38 extern void tuiHorizontalSourceScroll (TuiWinInfoPtr, TuiScrollDirection,
39 int);
40 extern TuiStatus tuiSetExecInfoContent (TuiWinInfoPtr);
41 extern void tuiShowExecInfoContent (TuiWinInfoPtr);
42 extern void tuiEraseExecInfoContent (TuiWinInfoPtr);
43 extern void tuiEraseAllExecInfosContent (void);
44 extern void tuiClearExecInfoContent (TuiWinInfoPtr);
45 extern void tuiClearAllExecInfosContent (void);
46 extern void tuiUpdateExecInfo (TuiWinInfoPtr);
47 extern void tuiUpdateAllExecInfos (void);
48
49 extern void tuiSetIsExecPointAt (TuiLineOrAddress, TuiWinInfoPtr);
50 extern void tuiSetHasBreakAt (struct breakpoint *, TuiWinInfoPtr, int);
51 extern void tuiAllSetHasBreakAt (struct breakpoint *, int);
52 extern TuiStatus tuiAllocSourceBuffer (TuiWinInfoPtr);
53 extern int tuiLineIsDisplayed (int, TuiWinInfoPtr, int);
54 extern int tuiAddrIsDisplayed (CORE_ADDR, TuiWinInfoPtr, int);
55
56
57 /*
58 ** Constant definitions
59 */
60 #define SCROLL_THRESHOLD 2 /* threshold for lazy scroll */
61
62 #endif
63 /*_TUI_SOURCEWIN_H */