public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] Revert "sim: mn10300: drop unused sim-main.c"
Date: Fri, 23 Dec 2022 00:23:02 -0500	[thread overview]
Message-ID: <20221223052302.24338-1-vapier@gentoo.org> (raw)
In-Reply-To: <20221223043946.28018-1-vapier@gentoo.org>

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.
---
 sim/mn10300/sim-main.c | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 sim/mn10300/sim-main.c

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


      reply	other threads:[~2022-12-23  5:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-23  4:39 [PATCH] sim: mn10300: drop unused sim-main.c Mike Frysinger
2022-12-23  5:23 ` Mike Frysinger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221223052302.24338-1-vapier@gentoo.org \
    --to=vapier@gentoo.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).