[PATCH] s390-nat.c: Fix missing prototypes

Andreas Arnez arnez@vnet.ibm.com
Mon Mar 5 17:39:00 GMT 2012


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



More information about the Gdb-patches mailing list