Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Joel Brobecker <brobecker@adacore.com>,
	Alberto Luaces <aluaces@udc.es>,
	gdb-patches@sources.redhat.com
Subject: Re: Undefined uintptr_t with mingw
Date: Wed, 22 Dec 2010 13:11:00 -0000	[thread overview]
Message-ID: <201012221228.59906.pedro@codesourcery.com> (raw)
Message-ID: <20101222131100.VQsO5xNf31PKJcoaA8Udt1TMP_W2IzIumVaiAqR576c@z> (raw)
In-Reply-To: <20101222040005.GG2596@adacore.com>

On Wednesday 22 December 2010 04:00:05, Joel Brobecker wrote:
> [I changed the subject to include "gdbserver" in the subject]
> 
> > diff -ur gdb-7.2orig/gdb/gdbserver/win32-low.c gdb-7.2/gdb/gdbserver/win32-low.c
> > --- gdb-7.2orig/gdb/gdbserver/win32-low.c	2010-12-21 16:27:10.000000000 +0100
> > +++ gdb-7.2/gdb/gdbserver/win32-low.c	2010-12-21 17:21:56.000000000 +0100
> > @@ -33,6 +33,7 @@
> >  #include <sys/param.h>
> >  #include <malloc.h>
> >  #include <process.h>
> > +#include <stdint.h>

Odd that nobody reported this before.  It kind of sounds like
something's different on debian's mingw...

ISTR that on mingw, stdint.h used to not be available.  ISTR
that's the reason we have the stdint.h inclusion
in gdbserver/tracepoint.c guarded by HAVE_STDINT_H.  Unless
someone calls me mad, this is okay, with such a guard added.

> Pedro is the current expert for gdbserver, so please wait for his
> review, but I'm thinking that we should probably do the same as GDB,
> which is include stdlib in the gdbserver equivalent of defs.h (i.e.
> server.h).

This is fine with me as well, but note that gdb/defs.h is
including stdint.h unconditionally, because it can rely that gdb/gnulib
provides one if the host doesn't have such a header, or if
it finds the system one misses features.  If we go this path,
we should also wrap it in HAVE_STDINT_H.

-- 
Pedro Alves


  reply	other threads:[~2010-12-22 12:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-21 16:35 Alberto Luaces
2010-12-22  4:00 ` Joel Brobecker
2010-12-22 12:29   ` Pedro Alves [this message]
2010-12-22 13:11     ` Pedro Alves
2010-12-22 14:32     ` Joel Brobecker
2010-12-22 13:12       ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201012221228.59906.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=aluaces@udc.es \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox