mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
gdb/tui: cleanup includes
Remove includes reported as unused by clangd. Then, add any includes necessary to get rid of errors (includes possibly relying on previous includes).. I didn't remove the includes of gdb-safe-ctypes.h, because it appears to do some some preprocessor magic, redefining standard macros. I'm afraid that removing these includes could change the behavior unintentionally. Change-Id: I4c5b652355c3bbce022fe0d447a72dc4e1d17d34 Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
parent
a791eef767
commit
9102a6c15c
@ -19,10 +19,6 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-command.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
|
||||
|
@ -19,12 +19,10 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "symtab.h"
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "gdb_curses.h"
|
||||
#include <algorithm>
|
||||
|
@ -24,8 +24,6 @@
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "gdb_curses.h"
|
||||
#include "observable.h"
|
||||
#include "gdbsupport/gdb-checked-static-cast.h"
|
||||
|
||||
/* A deleter that calls delwin. */
|
||||
struct curses_deleter
|
||||
|
@ -29,13 +29,9 @@
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-command.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-layout.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-file.h"
|
||||
#include "tui/tui-disasm.h"
|
||||
#include "tui/tui-source.h"
|
||||
#include "progspace.h"
|
||||
#include "objfiles.h"
|
||||
#include "cli/cli-style.h"
|
||||
@ -43,8 +39,6 @@
|
||||
#include "gdbsupport/selftest.h"
|
||||
#include "inferior.h"
|
||||
|
||||
#include "gdb_curses.h"
|
||||
|
||||
struct tui_asm_line
|
||||
{
|
||||
CORE_ADDR addr;
|
||||
|
@ -22,6 +22,7 @@
|
||||
#ifndef TUI_TUI_DISASM_H
|
||||
#define TUI_TUI_DISASM_H
|
||||
|
||||
#include "gdbsupport/gdb-checked-static-cast.h"
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui-winsource.h"
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include "tui/tui-file.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-command.h"
|
||||
#include "tui.h"
|
||||
|
||||
void
|
||||
tui_file::puts (const char *linebuffer)
|
||||
|
@ -19,18 +19,11 @@
|
||||
|
||||
#include "symtab.h"
|
||||
#include "inferior.h"
|
||||
#include "command.h"
|
||||
#include "bfd.h"
|
||||
#include "symfile.h"
|
||||
#include "objfiles.h"
|
||||
#include "target.h"
|
||||
#include "gdbcore.h"
|
||||
#include "gdbsupport/event-loop.h"
|
||||
#include "event-top.h"
|
||||
#include "frame.h"
|
||||
#include "breakpoint.h"
|
||||
#include "ui-out.h"
|
||||
#include "top.h"
|
||||
#include "observable.h"
|
||||
#include "source.h"
|
||||
#include <unistd.h>
|
||||
@ -38,16 +31,11 @@
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-hooks.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-layout.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-regs.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
|
||||
#include "gdb_curses.h"
|
||||
|
||||
static void
|
||||
tui_new_objfile_hook (struct objfile* objfile)
|
||||
{
|
||||
|
@ -21,16 +21,11 @@
|
||||
#include "interps.h"
|
||||
#include "ui.h"
|
||||
#include "event-top.h"
|
||||
#include "gdbsupport/event-loop.h"
|
||||
#include "ui-out.h"
|
||||
#include "cli-out.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "infrun.h"
|
||||
#include "observable.h"
|
||||
#include "gdbthread.h"
|
||||
#include "inferior.h"
|
||||
#include "main.h"
|
||||
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "target.h"
|
||||
#include "gdbsupport/event-loop.h"
|
||||
#include "event-top.h"
|
||||
#include "command.h"
|
||||
#include "top.h"
|
||||
#include "ui.h"
|
||||
#include "tui/tui.h"
|
||||
|
@ -19,15 +19,11 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "arch-utils.h"
|
||||
#include "command.h"
|
||||
#include "symtab.h"
|
||||
#include "frame.h"
|
||||
#include "source.h"
|
||||
#include "cli/cli-cmds.h"
|
||||
#include "cli/cli-decode.h"
|
||||
#include "cli/cli-utils.h"
|
||||
#include <ctype.h>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "tui/tui.h"
|
||||
@ -37,7 +33,6 @@
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-regs.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
#include "tui/tui-disasm.h"
|
||||
#include "tui/tui-layout.h"
|
||||
#include "tui/tui-source.h"
|
||||
|
@ -15,9 +15,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-location.h"
|
||||
#include "symtab.h"
|
||||
#include "source.h"
|
||||
|
@ -18,11 +18,6 @@
|
||||
#ifndef TUI_TUI_LOCATION_H
|
||||
#define TUI_TUI_LOCATION_H
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui.h"
|
||||
#include "gdb_curses.h"
|
||||
#include "observable.h"
|
||||
|
||||
/* Class used to track the current location that the TUI is displaying. An
|
||||
instance of this class will be created; as events occur within GDB the
|
||||
location information within this instance will be updated. As windows
|
||||
|
@ -21,10 +21,7 @@
|
||||
|
||||
#include "arch-utils.h"
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "symtab.h"
|
||||
#include "gdbtypes.h"
|
||||
#include "cli/cli-cmds.h"
|
||||
#include "frame.h"
|
||||
#include "regcache.h"
|
||||
#include "inferior.h"
|
||||
@ -32,11 +29,8 @@
|
||||
#include "tui/tui-layout.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
#include "tui/tui-file.h"
|
||||
#include "tui/tui-regs.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "reggroups.h"
|
||||
#include "valprint.h"
|
||||
#include "completer.h"
|
||||
|
||||
#include "gdb_curses.h"
|
||||
|
@ -22,6 +22,7 @@
|
||||
#ifndef TUI_TUI_REGS_H
|
||||
#define TUI_TUI_REGS_H
|
||||
|
||||
#include "gdbsupport/gdb-checked-static-cast.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "reggroups.h"
|
||||
|
||||
|
@ -20,7 +20,6 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
#include "symtab.h"
|
||||
#include "frame.h"
|
||||
#include "breakpoint.h"
|
||||
@ -28,16 +27,11 @@
|
||||
#include "objfiles.h"
|
||||
#include "filenames.h"
|
||||
#include "source-cache.h"
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
#include "tui/tui-source.h"
|
||||
#include "tui/tui-location.h"
|
||||
#include "gdb_curses.h"
|
||||
|
||||
/* Function to display source in the source window. */
|
||||
bool
|
||||
|
@ -22,6 +22,7 @@
|
||||
#ifndef TUI_TUI_SOURCE_H
|
||||
#define TUI_TUI_SOURCE_H
|
||||
|
||||
#include "gdbsupport/gdb-checked-static-cast.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui-winsource.h"
|
||||
|
||||
|
@ -20,21 +20,17 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "symtab.h"
|
||||
#include "breakpoint.h"
|
||||
#include "frame.h"
|
||||
#include "command.h"
|
||||
#include "inferior.h"
|
||||
#include "target.h"
|
||||
#include "top.h"
|
||||
#include "gdb-demangle.h"
|
||||
#include "source.h"
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
#include "tui/tui-source.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
#include "tui/tui-file.h"
|
||||
#include "tui/tui-location.h"
|
||||
|
||||
#include "gdb_curses.h"
|
||||
|
@ -26,14 +26,9 @@
|
||||
|
||||
#include "command.h"
|
||||
#include "symtab.h"
|
||||
#include "breakpoint.h"
|
||||
#include "frame.h"
|
||||
#include "cli/cli-cmds.h"
|
||||
#include "cli/cli-style.h"
|
||||
#include "top.h"
|
||||
#include "source.h"
|
||||
#include "gdbsupport/event-loop.h"
|
||||
#include "async-event.h"
|
||||
#include "ui-out.h"
|
||||
#include "utils.h"
|
||||
|
||||
@ -43,8 +38,6 @@
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-layout.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-regs.h"
|
||||
#include "tui/tui-disasm.h"
|
||||
#include "tui/tui-source.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
@ -55,8 +48,6 @@
|
||||
#include "readline/readline.h"
|
||||
#include <string_view>
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
static void tui_set_tab_width_command (const char *, int);
|
||||
static void tui_refresh_all_command (const char *, int);
|
||||
static void tui_all_windows_info (const char *, int);
|
||||
|
@ -19,12 +19,10 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include "tui/tui.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "cli/cli-style.h"
|
||||
|
||||
#include "gdb_curses.h"
|
||||
|
@ -19,14 +19,13 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||
|
||||
#include <ctype.h>
|
||||
#include "observable.h"
|
||||
#include "symtab.h"
|
||||
#include "frame.h"
|
||||
#include "breakpoint.h"
|
||||
#include "value.h"
|
||||
#include "source.h"
|
||||
#include "objfiles.h"
|
||||
#include "filenames.h"
|
||||
#include "gdbsupport/gdb-safe-ctype.h"
|
||||
|
||||
#include "tui/tui.h"
|
||||
@ -34,7 +33,6 @@
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
#include "tui/tui-winsource.h"
|
||||
#include "tui/tui-source.h"
|
||||
#include "tui/tui-disasm.h"
|
||||
|
@ -22,6 +22,7 @@
|
||||
#ifndef TUI_TUI_WINSOURCE_H
|
||||
#define TUI_TUI_WINSOURCE_H
|
||||
|
||||
#include "gdbsupport/observable.h"
|
||||
#include "tui/tui-data.h"
|
||||
#include "symtab.h"
|
||||
|
||||
|
@ -28,7 +28,6 @@
|
||||
#include "tui/tui-data.h"
|
||||
#include "tui/tui-layout.h"
|
||||
#include "tui/tui-io.h"
|
||||
#include "tui/tui-regs.h"
|
||||
#include "tui/tui-status.h"
|
||||
#include "tui/tui-win.h"
|
||||
#include "tui/tui-wingeneral.h"
|
||||
@ -36,18 +35,13 @@
|
||||
#include "tui/tui-source.h"
|
||||
#include "target.h"
|
||||
#include "frame.h"
|
||||
#include "breakpoint.h"
|
||||
#include "inferior.h"
|
||||
#include "symtab.h"
|
||||
#include "source.h"
|
||||
#include "terminal.h"
|
||||
#include "top.h"
|
||||
#include "ui.h"
|
||||
|
||||
#include <ctype.h>
|
||||
#include <signal.h>
|
||||
#include <fcntl.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#include "gdb_curses.h"
|
||||
#include "interps.h"
|
||||
|
Loading…
Reference in New Issue
Block a user