This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] s390-nat.c: Fix missing prototypes
- From: Andreas Arnez <arnez at vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 05 Mar 2012 18:38:48 +0100
- Subject: [PATCH] s390-nat.c: Fix missing prototypes
Fix missing prototypes for supply_gregset and friends in "s390-nat.c".
Tested on s390x-ibm-linux with no regressions, fixes a
-Wmissing-prototypes build failure.
gdb/
2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
* s390-nat.c: Include "gregset.h".
---
diff --git a/gdb/s390-nat.c b/gdb/s390-nat.c
index 2755e58..aff967e 100644
--- a/gdb/s390-nat.c
+++ b/gdb/s390-nat.c
@@ -37,6 +37,9 @@
#include <sys/ucontext.h>
#include <elf.h>
+/* Prototypes for supply_gregset etc. */
+#include "gregset.h"
+
#ifndef HWCAP_S390_HIGH_GPRS
#define HWCAP_S390_HIGH_GPRS 512
#endif