diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-04-04 21:07:54 +0100 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-04-06 13:09:44 +0100 |
commit | c8154ce0d6942e5988076edd674036ff384ab433 (patch) | |
tree | 963c708838288216c653411d944ea3bb6b61d322 /gdb/arc-linux-tdep.c | |
parent | ca028a46d51374864e4a4aa2942dfa7d93b893ce (diff) | |
download | gdb-c8154ce0d6942e5988076edd674036ff384ab433.zip gdb-c8154ce0d6942e5988076edd674036ff384ab433.tar.gz gdb-c8154ce0d6942e5988076edd674036ff384ab433.tar.bz2 |
gdb: move gdb_disassembly_flag into a new disasm-flags.h file
While working on the disassembler I was getting frustrated. Every
time I touched disasm.h it seemed like every file in GDB would need to
be rebuilt. Surely the disassembler can't be required by that many
parts of GDB, right?
Turns out that disasm.h is included in target.h, so pretty much every
file was being rebuilt!
The only thing from disasm.h that target.h needed is the
gdb_disassembly_flag enum, as this is part of the target_ops api.
In this commit I move gdb_disassembly_flag into its own file. This is
then included in target.h and disasm.h, after which, the number of
files that depend on disasm.h is much reduced.
I also audited all the other includes of disasm.h and found that the
includes in mep-tdep.c and python/py-registers.c are no longer needed,
so I've removed these.
Now, after changing disasm.h, GDB rebuilds much quicker.
There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/arc-linux-tdep.c')
-rw-r--r-- | gdb/arc-linux-tdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/arc-linux-tdep.c b/gdb/arc-linux-tdep.c index e895b72..1744b75 100644 --- a/gdb/arc-linux-tdep.c +++ b/gdb/arc-linux-tdep.c @@ -24,6 +24,7 @@ #include "opcode/arc.h" #include "osabi.h" #include "solib-svr4.h" +#include "disasm.h" /* ARC header files. */ #include "opcodes/arc-dis.h" |