This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch] fix amd64bsd-nat.c compilation
- From: Andreas Tobler <andreast-list at fgznet dot ch>
- To: gdb-patches at sourceware dot org
- Date: Sun, 11 Mar 2012 16:13:47 +0100
- Subject: [patch] fix amd64bsd-nat.c compilation
Hi,
the below fixes these warnings:
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:170: warning: no
previous prototype for 'amd64bsd_dr_set_control'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:176: warning: no
previous prototype for 'amd64bsd_dr_set_addr'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:184: warning: no
previous prototype for 'amd64bsd_dr_get_addr'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:190: warning: no
previous prototype for 'amd64bsd_dr_get_status'
/export/devel/src/gdb/head/src/gdb/amd64bsd-nat.c:196: warning: no
previous prototype for 'amd64bsd_dr_get_control'
gmake[2]: *** [amd64bsd-nat.o] Error 1
Ok to commit?
Thanks,
Andreas
2012-03-11 Andreas Tobler <andreast@fgznet.ch>
* amd64bsd-nat.c: Include amd64bsd-nat.h
Index: amd64bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64bsd-nat.c,v
retrieving revision 1.20
diff -u -r1.20 amd64bsd-nat.c
--- amd64bsd-nat.c 9 Feb 2012 16:06:44 -0000 1.20
+++ amd64bsd-nat.c 11 Mar 2012 15:05:23 -0000
@@ -31,6 +31,7 @@
#include <machine/reg.h>
#include "amd64-tdep.h"
+#include "amd64bsd-nat.h"
#include "amd64-nat.h"
#include "inf-ptrace.h"