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/committed 1/2] sim: mn10300: switch abort to sim_engine_abort
Date: Mon, 14 Jun 2021 23:47:32 -0400	[thread overview]
Message-ID: <20210615034733.28752-1-vapier@gentoo.org> (raw)

This allows the caller to catch engine aborts if they want, and fixes
the warning about missing stdlib.h include by not using abort().
---
 sim/mn10300/ChangeLog    | 4 ++++
 sim/mn10300/mn10300.igen | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index 9a2c1d1929ca..ff7d6c18f117 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,7 @@
+2021-06-14  Mike Frysinger  <vapier@gentoo.org>
+
+	* mn10300.igen: Change abort to sim_engine_abort.
+
 2021-06-12  Mike Frysinger  <vapier@gentoo.org>
 
 	* configure.ac: Delete call to SIM_AC_OPTION_ALIGNMENT.
diff --git a/sim/mn10300/mn10300.igen b/sim/mn10300/mn10300.igen
index 80a394309c90..f67468da17eb 100644
--- a/sim/mn10300/mn10300.igen
+++ b/sim/mn10300/mn10300.igen
@@ -3624,7 +3624,7 @@
 {
   /* OP_F0FF (); */
   PC = cia;
-  abort ();
+  sim_engine_abort (SD, CPU, cia, "F0FF");
 }
 
 
-- 
2.31.1


             reply	other threads:[~2021-06-15  3:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-15  3:47 Mike Frysinger [this message]
2021-06-15  3:47 ` [PATCH/committed 2/2] sim: mn10300: enable -Werror Mike Frysinger
2021-06-16 15:35   ` Simon Marchi
2021-06-16 15:47     ` Simon Marchi
2021-06-16 17:52       ` Mike Frysinger
2021-06-16 18:01         ` Simon Marchi
2021-06-17  4:14           ` [PATCH/committed] sim: mn10300: tweak static inlines 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=20210615034733.28752-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).