aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/tracepoint.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-09 11:29:56 +0000
committerPedro Alves <palves@redhat.com>2015-03-09 11:29:57 +0000
commit9a9df97001814c87929826e6538762f3be07c4a4 (patch)
tree35a39438a137f5ce1036cf99ed3a950e67dbcb6f /gdb/gdbserver/tracepoint.c
parent9eb1356e381f3412f53ffe5bc68ce854330600fb (diff)
downloadgdb-9a9df97001814c87929826e6538762f3be07c4a4.zip
gdb-9a9df97001814c87929826e6538762f3be07c4a4.tar.gz
gdb-9a9df97001814c87929826e6538762f3be07c4a4.tar.bz2
gdbserver/tracepoint: Add 'struct sockaddr_un *' -> 'struct sockaddr *' cast
Fixes this in C++ mode: gdb/gdbserver/tracepoint.c: In function ‘void* gdb_agent_helper_thread(void*)’: gdb/gdbserver/tracepoint.c:7190:47: error: cannot convert ‘sockaddr_un*’ to ‘sockaddr*’ for argument ‘2’ to ‘int accept(int, sockaddr*, socklen_t*)’ fd = accept (listen_fd, &sockaddr, &tmp); gdb/gdbserver/ChangeLog: 2015-03-09 Pedro Alves <palves@redhat.com> * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to 'struct sockaddr' pointer in 'accept' call.
Diffstat (limited to 'gdb/gdbserver/tracepoint.c')
-rw-r--r--gdb/gdbserver/tracepoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/tracepoint.c b/gdb/gdbserver/tracepoint.c
index 27fcf03..42b27c0 100644
--- a/gdb/gdbserver/tracepoint.c
+++ b/gdb/gdbserver/tracepoint.c
@@ -7174,7 +7174,7 @@ gdb_agent_helper_thread (void *arg)
do
{
- fd = accept (listen_fd, &sockaddr, &tmp);
+ fd = accept (listen_fd, (struct sockaddr *) &sockaddr, &tmp);
}
/* It seems an ERESTARTSYS can escape out of accept. */
while (fd == -512 || (fd == -1 && errno == EINTR));