public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
From: Michael Frysinger <vapier@sourceware.org>
To: gdb-cvs@sourceware.org
Subject: [binutils-gdb] sim: unify sim-signal.o building
Date: Thu, 19 Jan 2023 00:36:39 +0000 (GMT)	[thread overview]
Message-ID: <20230119003639.1B8213858C00@sourceware.org> (raw)

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

commit 7fd14d6f580eeed46ef4d6f04f6b5f2f1318c0f9
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Wed Jan 18 19:26:58 2023 -0500

    sim: unify sim-signal.o building
    
    Now that sim-main.h has been reduced significantly, we can remove it
    from sim-signal.c and unify it across all boards since it compiles to
    the same code.

Diff:
---
 sim/Makefile.in         | 17 +++++++++++------
 sim/common/local.mk     |  2 +-
 sim/common/sim-signal.c |  3 ++-
 3 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/sim/Makefile.in b/sim/Makefile.in
index a2e7f98a78b..e46f3e8de05 100644
--- a/sim/Makefile.in
+++ b/sim/Makefile.in
@@ -380,8 +380,8 @@ aarch64_libsim_a_AR = $(AR) $(ARFLAGS)
 @SIM_ENABLE_ARCH_aarch64_TRUE@	aarch64/simulator.o
 am__dirstamp = $(am__leading_dot)dirstamp
 am__objects_1 = common/callback.$(OBJEXT) common/portability.$(OBJEXT) \
-	common/sim-load.$(OBJEXT) common/syscall.$(OBJEXT) \
-	common/target-newlib-errno.$(OBJEXT) \
+	common/sim-load.$(OBJEXT) common/sim-signal.$(OBJEXT) \
+	common/syscall.$(OBJEXT) common/target-newlib-errno.$(OBJEXT) \
 	common/target-newlib-open.$(OBJEXT) \
 	common/target-newlib-signal.$(OBJEXT) \
 	common/target-newlib-syscall.$(OBJEXT) \
@@ -458,7 +458,8 @@ common_libcommon_a_AR = $(AR) $(ARFLAGS)
 common_libcommon_a_LIBADD =
 am_common_libcommon_a_OBJECTS = common/callback.$(OBJEXT) \
 	common/portability.$(OBJEXT) common/sim-load.$(OBJEXT) \
-	common/syscall.$(OBJEXT) common/target-newlib-errno.$(OBJEXT) \
+	common/sim-signal.$(OBJEXT) common/syscall.$(OBJEXT) \
+	common/target-newlib-errno.$(OBJEXT) \
 	common/target-newlib-open.$(OBJEXT) \
 	common/target-newlib-signal.$(OBJEXT) \
 	common/target-newlib-syscall.$(OBJEXT) \
@@ -1837,6 +1838,7 @@ common_libcommon_a_SOURCES = \
 	common/callback.c \
 	common/portability.c \
 	common/sim-load.c \
+	common/sim-signal.c \
 	common/syscall.c \
 	common/target-newlib-errno.c \
 	common/target-newlib-open.c \
@@ -1860,9 +1862,9 @@ SIM_NEW_COMMON_OBJS = sim-arange.o sim-bits.o sim-close.o \
 	sim-command.o sim-config.o sim-core.o sim-cpu.o sim-endian.o \
 	sim-engine.o sim-events.o sim-fpu.o sim-hload.o sim-hrw.o \
 	sim-io.o sim-info.o sim-memopt.o sim-model.o sim-module.o \
-	sim-options.o sim-profile.o sim-reason.o sim-reg.o \
-	sim-signal.o sim-stop.o sim-syscall.o sim-trace.o sim-utils.o \
-	sim-watch.o $(am__append_2)
+	sim-options.o sim-profile.o sim-reason.o sim-reg.o sim-stop.o \
+	sim-syscall.o sim-trace.o sim-utils.o sim-watch.o \
+	$(am__append_2)
 SIM_HW_DEVICES = cfi core pal glue
 am_arch_d = $(subst -,_,$(@D))
 GEN_MODULES_C_SRCS = \
@@ -3194,6 +3196,8 @@ common/portability.$(OBJEXT): common/$(am__dirstamp) \
 	common/$(DEPDIR)/$(am__dirstamp)
 common/sim-load.$(OBJEXT): common/$(am__dirstamp) \
 	common/$(DEPDIR)/$(am__dirstamp)
+common/sim-signal.$(OBJEXT): common/$(am__dirstamp) \
+	common/$(DEPDIR)/$(am__dirstamp)
 common/syscall.$(OBJEXT): common/$(am__dirstamp) \
 	common/$(DEPDIR)/$(am__dirstamp)
 common/target-newlib-errno.$(OBJEXT): common/$(am__dirstamp) \
@@ -3936,6 +3940,7 @@ distclean-compile:
 @AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/callback.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/portability.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/sim-load.Po@am__quote@
+@AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/sim-signal.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/syscall.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/target-newlib-errno.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@common/$(DEPDIR)/target-newlib-open.Po@am__quote@
diff --git a/sim/common/local.mk b/sim/common/local.mk
index 89843ead03b..5d0992fbd9e 100644
--- a/sim/common/local.mk
+++ b/sim/common/local.mk
@@ -31,6 +31,7 @@ noinst_LIBRARIES += %D%/libcommon.a
 	%D%/callback.c \
 	%D%/portability.c \
 	%D%/sim-load.c \
+	%D%/sim-signal.c \
 	%D%/syscall.c \
 	%D%/target-newlib-errno.c \
 	%D%/target-newlib-open.c \
@@ -95,7 +96,6 @@ SIM_NEW_COMMON_OBJS = \
 	sim-profile.o \
 	sim-reason.o \
 	sim-reg.o \
-	sim-signal.o \
 	sim-stop.o \
 	sim-syscall.o \
 	sim-trace.o \
diff --git a/sim/common/sim-signal.c b/sim/common/sim-signal.c
index 9c4e261fa21..36ebbdfe969 100644
--- a/sim/common/sim-signal.c
+++ b/sim/common/sim-signal.c
@@ -22,7 +22,8 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
 #include <signal.h>
 
-#include "sim-main.h"
+#include "sim/sim.h"
+#include "sim-io.h"
 #include "sim-signal.h"
 
 /* Convert SIM_SIGFOO to SIGFOO.

                 reply	other threads:[~2023-01-19  0:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20230119003639.1B8213858C00@sourceware.org \
    --to=vapier@sourceware.org \
    --cc=gdb-cvs@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).