aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-12-23 00:20:52 -0500
committerMike Frysinger <vapier@gentoo.org>2022-12-23 00:22:53 -0500
commita4c4d804d6604033a6e9bdb0d6a08c7332db84ef (patch)
tree800c0d61797532e5672a12a56ea11505e4400a9b
parent681a422b855e4b20086554b170dae051361f00c7 (diff)
downloadgdb-a4c4d804d6604033a6e9bdb0d6a08c7332db84ef.zip
gdb-a4c4d804d6604033a6e9bdb0d6a08c7332db84ef.tar.gz
gdb-a4c4d804d6604033a6e9bdb0d6a08c7332db84ef.tar.bz2
Revert "sim: mn10300: drop unused sim-main.c"
This reverts commit 681a422b855e4b20086554b170dae051361f00c7. I missed that this was included via common/sim-inline.c. I thought I had grepped the top of the tree, but I must have only done mn10300. Add a comment to make it clear where/how this file is used.
-rw-r--r--sim/mn10300/sim-main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sim/mn10300/sim-main.c b/sim/mn10300/sim-main.c
new file mode 100644
index 0000000..99a5c84
--- /dev/null
+++ b/sim/mn10300/sim-main.c
@@ -0,0 +1,9 @@
+/**
+ * This isn't normally compiled, but is pulled in via sim-inline.c when the
+ * SIM_MAIN_INLINE option is enabled by the user at compile time.
+ */
+
+#ifndef SIM_MAIN_C
+#define SIM_MAIN_C
+#include "op_utils.c"
+#endif