]>
Commit | Line | Data |
---|---|---|
e0dd0e4d | 1 | /* TUI status line. |
47d3492a | 2 | |
1d506c26 | 3 | Copyright (C) 1998-2024 Free Software Foundation, Inc. |
47d3492a | 4 | |
f377b406 SC |
5 | Contributed by Hewlett-Packard Company. |
6 | ||
7 | This file is part of GDB. | |
8 | ||
9 | This program is free software; you can redistribute it and/or modify | |
10 | it under the terms of the GNU General Public License as published by | |
a9762ec7 | 11 | the Free Software Foundation; either version 3 of the License, or |
f377b406 SC |
12 | (at your option) any later version. |
13 | ||
14 | This program is distributed in the hope that it will be useful, | |
15 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | GNU General Public License for more details. | |
18 | ||
19 | You should have received a copy of the GNU General Public License | |
a9762ec7 | 20 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
f377b406 | 21 | |
e0dd0e4d TT |
22 | #ifndef TUI_TUI_STATUS_H |
23 | #define TUI_TUI_STATUS_H | |
47d3492a | 24 | |
f2dda477 TT |
25 | #include "tui/tui-data.h" |
26 | ||
bd2b40ac | 27 | class frame_info_ptr; |
c906108c | 28 | |
f2dda477 TT |
29 | /* Locator window class. */ |
30 | ||
e0dd0e4d | 31 | struct tui_status_window |
85a427b2 TV |
32 | : public tui_nofocus_window, tui_noscroll_window, tui_oneline_window, |
33 | tui_nobox_window | |
f2dda477 | 34 | { |
e0dd0e4d | 35 | tui_status_window () = default; |
f2dda477 | 36 | |
1cdf9e33 TT |
37 | const char *name () const override |
38 | { | |
39 | return STATUS_NAME; | |
40 | } | |
41 | ||
3df505f6 TT |
42 | void rerender () override; |
43 | ||
71a25ed2 TT |
44 | private: |
45 | ||
46 | /* Create the status line to display as much information as we can | |
47 | on this single line: target name, process number, current | |
48 | function, current line, current PC, SingleKey mode. */ | |
49 | ||
50 | std::string make_status_line () const; | |
f2dda477 TT |
51 | }; |
52 | ||
e0dd0e4d | 53 | extern void tui_show_status_content (void); |
9efe17a3 | 54 | extern bool tui_show_frame_info (frame_info_ptr); |
c906108c | 55 | |
e0dd0e4d | 56 | #endif /* TUI_TUI_STATUS_H */ |