public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Revert "sim: mn10300: drop unused sim-main.c"
@ 2022-12-23  5:23 Michael Frysinger
  0 siblings, 0 replies; only message in thread
From: Michael Frysinger @ 2022-12-23  5:23 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a4c4d804d6604033a6e9bdb0d6a08c7332db84ef

commit a4c4d804d6604033a6e9bdb0d6a08c7332db84ef
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Fri Dec 23 00:20:52 2022 -0500

    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.

Diff:
---
 sim/mn10300/sim-main.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/sim/mn10300/sim-main.c b/sim/mn10300/sim-main.c
new file mode 100644
index 00000000000..99a5c846c0d
--- /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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-23  5:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23  5:23 [binutils-gdb] Revert "sim: mn10300: drop unused sim-main.c" Michael Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).