gdbserver/tracepoint: Add 'struct sockaddr_un *' -> 'struct sockaddr *' cast
authorPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:29:56 +0000 (11:29 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 9 Mar 2015 11:29:57 +0000 (11:29 +0000)
commit9a9df97001814c87929826e6538762f3be07c4a4
tree35a39438a137f5ce1036cf99ed3a950e67dbcb6f
parent9eb1356e381f3412f53ffe5bc68ce854330600fb
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.
gdb/features/feature_to_c.sh [changed mode: 0644->0755]
gdb/gdbserver/ChangeLog
gdb/gdbserver/tracepoint.c