diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-12-22 22:01:19 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-12-22 22:06:12 -0500 |
commit | 6cf3ddd23ec1cf33f4b9f82d267e79741a2fdc48 (patch) | |
tree | e02be1dba5bfeb55f0bf55f6fcdb8678e2fd7259 /sim/m68hc11 | |
parent | 4c337f2dd3df1f97d9dc17ace5708f5cdc4512dc (diff) | |
download | gdb-6cf3ddd23ec1cf33f4b9f82d267e79741a2fdc48.zip gdb-6cf3ddd23ec1cf33f4b9f82d267e79741a2fdc48.tar.gz gdb-6cf3ddd23ec1cf33f4b9f82d267e79741a2fdc48.tar.bz2 |
sim: move bfd.h include out of sim-main.h
Not all arches include this in sim-main.h, and the ones that do don't
actually use bfd defines in the sim-main.h header. Prune it to make
sim-main.h simpler so we can kill it off entirely in the future.
We add the include to the files that utilize e.g. bfd_vma though.
Diffstat (limited to 'sim/m68hc11')
-rw-r--r-- | sim/m68hc11/interp.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/interrupts.c | 2 | ||||
-rw-r--r-- | sim/m68hc11/sim-main.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c index 2620060..89c6449 100644 --- a/sim/m68hc11/interp.c +++ b/sim/m68hc11/interp.c @@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include "bfd.h" + #include "sim-main.h" #include "sim-assert.h" #include "sim-hw.h" diff --git a/sim/m68hc11/interrupts.c b/sim/m68hc11/interrupts.c index ee65f43..5b3d48f 100644 --- a/sim/m68hc11/interrupts.c +++ b/sim/m68hc11/interrupts.c @@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ #include "defs.h" +#include "bfd.h" + #include "sim-main.h" #include "sim-options.h" #include "sim-signal.h" diff --git a/sim/m68hc11/sim-main.h b/sim/m68hc11/sim-main.h index e47bd83..f320bf1 100644 --- a/sim/m68hc11/sim-main.h +++ b/sim/m68hc11/sim-main.h @@ -23,8 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ #include "sim-basics.h" #include "sim-base.h" -#include "bfd.h" - #include "opcode/m68hc11.h" #include "sim/sim.h" |