Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
To: "'Eli Zaretskii'" <eliz@gnu.org>
Cc: <gdb-patches@sourceware.org>
Subject: RE: [RFC 9/9] Unify windows specifics into common/windows-hdep files
Date: Wed, 30 Mar 2011 21:34:00 -0000	[thread overview]
Message-ID: <004201cbef22$04834770$0d89d650$@muller@ics-cnrs.unistra.fr> (raw)
In-Reply-To: <83ipv0qtl5.fsf@gnu.org>



> -----Message d'origine-----
> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] De la part de Eli Zaretskii
> Envoyé : mercredi 30 mars 2011 21:47
> À : Pierre Muller
> Cc : gdb-patches@sourceware.org
> Objet : Re: [RFC 9/9] Unify windows specifics into common/windows-hdep
files
> 
> > From: "Pierre Muller" <pierre.muller@ics-cnrs.unistra.fr>
> > Date: Wed, 30 Mar 2011 14:05:17 +0200
> >
> >    if (strcasecmp (buf, "ntdll.dll") == 0)
> >      {
> > -      GetSystemDirectory (buf, sizeof (buf));
> > +      GetSystemDirectoryA (buf, sizeof (buf));
> 
> This will be a problem if we ever support a _UNICODE build.

  No because buf always a char array in the code and
thus require the use of GetSystemDirectoryA function
even if Unicode functions are used elsewhere.

> > +      if (windows_conv_path (WINDOWS_POSIX_TO_NATIVE, exec_file,
> real_path,
> > +			     __PMAX * sizeof (win_buf_t)) < 0)
> >  	error (_("Error starting executable: %d"), errno);
> 
> But windows_conv_path never returns a negative value, it returns zero
> if it fails.

  At least for Cygwin, windows_conv_path simply returns cygwinconv_path
result, his is why I didn't change the code arounf it:
I agree that I need to improve the mingw part of that function
according to your comments for RFC 1/9.
 
> Thanks.

Thank you for your comments

Pierre


  reply	other threads:[~2011-03-30 21:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <00ba01cbeed2$bbf50150$33df03f0$%muller@ics-cnrs.unistra.fr>
2011-03-30 21:34 ` Eli Zaretskii
2011-03-30 21:34   ` Pierre Muller [this message]
2011-03-30 12:15 Pierre Muller

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='004201cbef22$04834770$0d89d650$@muller@ics-cnrs.unistra.fr' \
    --to=pierre.muller@ics-cnrs.unistra.fr \
    --cc=eliz@gnu.org \
    --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