From: Pavel Kryukov <kryukov@frtk.ru>
To: gdb-patches@sourceware.org
Cc: "Pavel I. Kryukov" <kryukov@frtk.ru>
Subject: [PATCH] Include <stdlib.h> to cp1.c for abort() declaration
Date: Sat, 12 Dec 2020 15:45:28 +0300 [thread overview]
Message-ID: <20201212124528.1095-1-kryukov@frtk.ru> (raw)
From: "Pavel I. Kryukov" <kryukov@frtk.ru>
sim/mips/ChangeLog:
* cp1.c: Include <stdlib.h>
---
sim/mips/ChangeLog | 4 ++++
sim/mips/cp1.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 7ced3edd1b..f9a1eb96c6 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,7 @@
+2020-12-12 Pavel I. Kryukov <kryukov@frtk.ru>
+
+ * cp1.c: Include <stdlib.h>.
+
2020-07-29 Simon Marchi <simon.marchi@efficios.com>
* configure: Re-generate.
diff --git a/sim/mips/cp1.c b/sim/mips/cp1.c
index 82fdea2bcb..d81b07a20c 100644
--- a/sim/mips/cp1.c
+++ b/sim/mips/cp1.c
@@ -42,6 +42,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "sim-main.h"
+#include <stdlib.h>
+
/* Within cp1.c we refer to sim_cpu directly. */
#define CPU cpu
#define SD CPU_STATE(cpu)
--
2.17.1
next reply other threads:[~2020-12-12 12:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-12 12:45 Pavel Kryukov [this message]
2020-12-13 14:10 ` Joel Brobecker
2020-12-13 16:27 ` Pavel I. Kryukov
2020-12-14 3:03 ` Joel Brobecker
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=20201212124528.1095-1-kryukov@frtk.ru \
--to=kryukov@frtk.ru \
--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