aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-ptrace.h
diff options
context:
space:
mode:
authorRoland McGrath <mcgrathr@google.com>2022-03-01 16:03:58 -0800
committerRoland McGrath <mcgrathr@google.com>2022-03-03 11:21:36 -0800
commit8674f082e3f0d3f27ded5d93ebbd11cd702f5f04 (patch)
tree1e12f26e02b8e3909639f4ea7b4b675fb4ff5cfc /gdb/inf-ptrace.h
parentdb120fb808dc24538e89b851d6dda1890aad5a1f (diff)
downloadgdb-8674f082e3f0d3f27ded5d93ebbd11cd702f5f04.zip
gdb-8674f082e3f0d3f27ded5d93ebbd11cd702f5f04.tar.gz
gdb-8674f082e3f0d3f27ded5d93ebbd11cd702f5f04.tar.bz2
Avoid conflict with gnulib open/close macros.
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.
Diffstat (limited to 'gdb/inf-ptrace.h')
-rw-r--r--gdb/inf-ptrace.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/inf-ptrace.h b/gdb/inf-ptrace.h
index 62cc777..8f18d45 100644
--- a/gdb/inf-ptrace.h
+++ b/gdb/inf-ptrace.h
@@ -77,9 +77,9 @@ struct inf_ptrace_target : public inf_child_target
protected:
/* Helper routines for interacting with the async event pipe. */
bool async_file_open ()
- { return m_event_pipe.open (); }
+ { return m_event_pipe.open_pipe (); }
void async_file_close ()
- { m_event_pipe.close (); }
+ { m_event_pipe.close_pipe (); }
void async_file_flush ()
{ m_event_pipe.flush (); }
void async_file_mark ()