Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Include <stdlib.h> to cp1.c for abort() declaration
@ 2020-12-12 12:45 Pavel Kryukov
  2020-12-13 14:10 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Kryukov @ 2020-12-12 12:45 UTC (permalink / raw)
  To: gdb-patches; +Cc: Pavel I. Kryukov

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-14  3:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-12 12:45 [PATCH] Include <stdlib.h> to cp1.c for abort() declaration Pavel Kryukov
2020-12-13 14:10 ` Joel Brobecker
2020-12-13 16:27   ` Pavel I. Kryukov
2020-12-14  3:03     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox