aboutsummaryrefslogtreecommitdiff
path: root/sim/common
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-23 00:32:29 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-23 00:52:04 -0500
commit3eaecff5137752dbe01b82efba36aad1d190fe7b (patch)
tree121b8714b7b7b2ca06c0b6c4c9f3a2b9dfe072a1 /sim/common
parentd9e217e950b01fac7948d2d326e866a9f2d1dcb8 (diff)
downloadgdb-3eaecff5137752dbe01b82efba36aad1d190fe7b.zip
gdb-3eaecff5137752dbe01b82efba36aad1d190fe7b.tar.gz
gdb-3eaecff5137752dbe01b82efba36aad1d190fe7b.tar.bz2
sim: cgen: move symcat.h include to where it's used
Move this out of the global sim-main.h and to the few files that actually use functions from it. Only the cgen ports were pulling this, so this makes cgen & non-cgen behave more the same.
Diffstat (limited to 'sim/common')
-rw-r--r--sim/common/cgen-mem.h2
-rw-r--r--sim/common/sim-close.c2
-rw-r--r--sim/common/sim-core.h1
-rw-r--r--sim/common/sim-types.h2
4 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/cgen-mem.h b/sim/common/cgen-mem.h
index 15ba872..b266107 100644
--- a/sim/common/cgen-mem.h
+++ b/sim/common/cgen-mem.h
@@ -20,6 +20,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#ifndef CGEN_MEM_H
#define CGEN_MEM_H
+#include "symcat.h"
+
/* TODO: This should get moved into sim-inline.h. */
#ifdef MEMOPS_DEFINE_INLINE
#define MEMOPS_INLINE
diff --git a/sim/common/sim-close.c b/sim/common/sim-close.c
index 4e118a4..e21e617 100644
--- a/sim/common/sim-close.c
+++ b/sim/common/sim-close.c
@@ -21,6 +21,8 @@
/* This must come before any other includes. */
#include "defs.h"
+#include "symcat.h"
+
#include "sim-main.h"
#include "sim-module.h"
#include "sim/sim.h"
diff --git a/sim/common/sim-core.h b/sim/common/sim-core.h
index df4e3e1..256c552 100644
--- a/sim/common/sim-core.h
+++ b/sim/common/sim-core.h
@@ -23,6 +23,7 @@
#ifndef SIM_CORE_H
#define SIM_CORE_H
+#include "symcat.h"
/* core signals (error conditions)
Define SIM_CORE_SIGNAL to catch these signals - see sim-core.c for
diff --git a/sim/common/sim-types.h b/sim/common/sim-types.h
index b4dad0d..22ef343 100644
--- a/sim/common/sim-types.h
+++ b/sim/common/sim-types.h
@@ -29,6 +29,8 @@
#include <stdint.h>
+#include "symcat.h"
+
/* INTEGER QUANTITIES:
TYPES: