From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] sim: unify sim-signal.o building
Date: Wed, 18 Jan 2023 19:35:34 -0500 [thread overview]
Message-ID: <20230119003534.21437-1-vapier@gentoo.org> (raw)
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.
---
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/common/local.mk b/sim/common/local.mk
index 89843ead03be..5d0992fbd9e6 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 9c4e261fa216..36ebbdfe969e 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.
--
2.39.0
next reply other threads:[~2023-01-19 0:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-19 0:35 Mike Frysinger [this message]
2023-01-19 1:47 Mike Frysinger
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=20230119003534.21437-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).