public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@palves.net>
To: Roland McGrath <mcgrathr@google.com>, GDB <gdb-patches@sourceware.org>
Subject: Re: [PATCH users/roland/event-pipe] Avoid conflict with gnulib open/close macros.
Date: Thu, 3 Mar 2022 18:57:23 +0000	[thread overview]
Message-ID: <0a65b1a3-5d1d-eb09-e280-cccb1b27f42a@palves.net> (raw)
In-Reply-To: <CAB=4xhqvmb-EgMc2TcNSzXG3P58Z332XvibC+Gf4zoe3XLv2kg@mail.gmail.com>

On 2022-03-02 00:26, Roland McGrath via Gdb-patches wrote:
> [This patch is on sourceware branch users/roland/event-pipe for your
> convenience.  I can merge it in myself after approval.]
> 
> On some systems, the gnulib configuration will decide to define open
> and/or close as macros to replace the POSIX C functions.  This
> interferes with using those names in C++ class or namespace scopes.
> 
> gdbsupport/
>         * event-pipe.cc (event_pipe::open): Renamed to ...
>         (event_pipe::open_pipe): ... this.
>         (event_pipe::close): Renamed to ...
>         (event_pipe::close_pipe): ... this.
>         * event-pipe.h (class event_pipe): Updated.
> gdb/
>         * inf-ptrace.h (async_file_open, async_file_close): Updated.
> gdbserver/
>         * gdbserver/linux-low.cc (linux_process_target::async): Likewise.

OK, thanks.

  parent reply	other threads:[~2022-03-03 18:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-02  0:26 Roland McGrath
2022-03-02  0:31 ` John Baldwin
2022-03-03 18:57 ` Pedro Alves [this message]
2022-03-03 19:23   ` Roland McGrath

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=0a65b1a3-5d1d-eb09-e280-cccb1b27f42a@palves.net \
    --to=pedro@palves.net \
    --cc=gdb-patches@sourceware.org \
    --cc=mcgrathr@google.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).