This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [windows mingw]gdb cvs head build error in windows-nat.c
- From: Eli Zaretskii <eliz at gnu dot org>
- To: asmwarrior <asmwarrior at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 16 Dec 2011 16:29:57 +0200
- Subject: Re: [windows mingw]gdb cvs head build error in windows-nat.c
- References: <4EEB53E4.3070207@gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 16 Dec 2011 22:21:24 +0800
> From: asmwarrior <asmwarrior@gmail.com>
>
> ../../gdb/gdb/windows-nat.c: In function 'init_windows_ops':
> ../../gdb/gdb/windows-nat.c:2517:26: error: 'cygwin_get_dr' undeclared (first us
> e in this function)
> ../../gdb/gdb/windows-nat.c:2517:26: note: each undeclared identifier is reporte
> d only once for each function it appears in
> ../../gdb/gdb/windows-nat.c:2519:29: error: 'cygwin_get_dr7' undeclared (first u
> se in this function)
> cc1.exe: warnings being treated as errors
> ../../gdb/gdb/windows-nat.c: At top level:
> ../../gdb/gdb/windows-nat.c:2654:1: error: 'cygwin_get_dr' defined but not used
> ../../gdb/gdb/windows-nat.c:2673:1: error: 'cygwin_get_dr7' defined but not used
> [...]
> any ideas?
An idea: actually implement cygwin_set_dr7 ;-)
As for cygwin_get_dr, add a prototype before the first use.