mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
7908abbf18
A few functions can only operate on a source or disassembly window. This patch adds a bit more type safety to a few of these functions. This simplifies a subsequent patch. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-winsource.h (tui_clear_source_content) (tui_erase_source_content, tui_show_source_content): Change type of win_info. * tui/tui-winsource.c (tui_clear_source_content) (tui_erase_source_content, tui_show_source_content): Change type of win_info. * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update. * tui/tui-source.h (tui_set_source_content_nil): Change type of win_info. * tui/tui-source.c (tui_set_source_content_nil): Change type of win_info. * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
41 lines
1.3 KiB
C
41 lines
1.3 KiB
C
/* TUI display source window.
|
|
|
|
Copyright (C) 1998-2019 Free Software Foundation, Inc.
|
|
|
|
Contributed by Hewlett-Packard Company.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef TUI_TUI_SOURCE_H
|
|
#define TUI_TUI_SOURCE_H
|
|
|
|
#include "tui/tui-data.h"
|
|
|
|
struct symtab;
|
|
struct tui_win_info;
|
|
|
|
extern void tui_set_source_content_nil (struct tui_source_window_base *,
|
|
const char *);
|
|
|
|
extern enum tui_status tui_set_source_content (struct symtab *,
|
|
int, int);
|
|
extern void tui_show_symtab_source (struct gdbarch *, struct symtab *,
|
|
struct tui_line_or_address,
|
|
int);
|
|
extern int tui_source_is_displayed (const char *);
|
|
|
|
#endif /* TUI_TUI_SOURCE_H */
|