This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [windows mingw]gdb cvs head build error in windows-nat.c



> -----Message d'origine-----
> De : gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org] De la part
> de asmwarrior
> Envoyà : vendredi 16 dÃcembre 2011 15:34
> Ã : gdb@sourceware.org
> Objet : Re: [windows mingw]gdb cvs head build error in windows-nat.c
> 
> On 2011-12-16 22:21, asmwarrior wrote:
> > I build under MSYS+mingw
> > Here is the build error:
I confirm that this build failure also exists for cygwin native build. 
> This patch should fix the build error.
> 
>   gdb/windows-nat.c |    2 ++
>   1 files changed, 2 insertions(+), 0 deletions(-)

  Any small patch that resolves a build failure 
(especially for a native target) should be considered
as obvious and can thus be applied without 
the need to wait for approval by a global maintainers.

   But the patch should probably be sent to
gdb-patches mailing list together with the used ChangeLog entry.

Pierre Muller

 
> diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
> index b4529bd..99157b8 100644
> --- a/gdb/windows-nat.c
> +++ b/gdb/windows-nat.c
> @@ -172,8 +172,10 @@ static int windows_thread_alive (struct target_ops *,
> ptid_t);
>   static void windows_kill_inferior (struct target_ops *);
> 
>   static void cygwin_set_dr (int i, CORE_ADDR addr);
> +static CORE_ADDR cygwin_get_dr (int i);
>   static void cygwin_set_dr7 (unsigned long val);
>   static unsigned long cygwin_get_dr6 (void);
> +static unsigned long cygwin_get_dr7 (void);
> 
>   static enum target_signal last_sig = TARGET_SIGNAL_0;
>   /* Set if a signal was received from the debugged process.  */
> 
> 
> asmwarrior
> ollydbg from codeblocks' forum


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]