fcc2bd46472745432cd17bebfb943d758ae6cab6
1 /* TUI display source/assembly window.
2 Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
3 Contributed by Hewlett-Packard Company.
5 This file is part of GDB.
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.
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.
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. */
22 #ifndef _TUI_SOURCEWIN_H
23 #define _TUI_SOURCEWIN_H
25 extern void tuiDisplayMainFunction (void);
26 extern void tuiUpdateSourceWindow (TuiWinInfoPtr
, struct symtab
*, Opaque
,
28 extern void tuiUpdateSourceWindowAsIs (TuiWinInfoPtr
, struct symtab
*, Opaque
,
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
,
44 extern void tuiUpdateOnEnd (void);
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);
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);
65 ** Constant definitions
67 #define SCROLL_THRESHOLD 2 /* threshold for lazy scroll */
73 #define m_tuiSetBreakAt(bp, winInfo) tuiSetHasBreakAt((bp, winInfo, TRUE)
74 #define m_tuiClearBreakAt(bp, winInfo) tuiSetHasBreakAt(bp, winInfo, FALSE)
76 #define m_tuiAllSetBreakAt(bp) tuiAllSetHasBreakAt(bp, TRUE)
77 #define m_tuiAllClearBreakAt(bp) tuiAllSetHasBreakAt(bp, FALSE)
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) )
This page took 0.03408 seconds and 4 git commands to generate.